active_tools 0.0.36 → 0.0.37
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6091fa07e493e95800f2eb7b7ea33fc3308584b7
|
4
|
+
data.tar.gz: 96b31e002aed0e02b41a01a7ec2cd36cdfedac7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f8cfb9bb358f6626906bea1df56c39d04fa9812431c98d72b810e08479366e4a06c845c924ced76c5e57f1331ce1a9a06b68add0d677bcc948eda8a95b7be5
|
7
|
+
data.tar.gz: dafe560d2cafd81f031bef840911dd3acefff93e8464967a0de8990133f1b03c131b3a95790f082081775825c6e230a9bda2f1b519ecf4d935ccbfcddd11a1d9
|
@@ -60,7 +60,7 @@ module ActiveTools
|
|
60
60
|
|
61
61
|
class_attribute :adaptive_options unless defined?(adaptive_options)
|
62
62
|
self.adaptive_options ||= {}
|
63
|
-
self.adaptive_options[assoc_name.to_sym] = options.merge(:
|
63
|
+
self.adaptive_options[assoc_name.to_sym] = options.merge(:attr_map => attr_map)
|
64
64
|
|
65
65
|
class_eval <<-EOV
|
66
66
|
before_validation do
|
@@ -11,7 +11,7 @@ module ActiveTools
|
|
11
11
|
@assoc_name = assoc_name
|
12
12
|
@options = options.with_indifferent_access
|
13
13
|
@foreign_key = reflection.foreign_key
|
14
|
-
@remote_attributes = @options[:
|
14
|
+
@remote_attributes = @options[:attr_map].keys
|
15
15
|
@init_proc = @options[:init_proc]
|
16
16
|
@nullify_if = @options[:nullify_if]
|
17
17
|
@update_if = @options[:update_if]
|
data/lib/active_tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.37
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valery Kvon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|