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: 5d599d581dac5166f36e4b607305fa5891d958ba
4
- data.tar.gz: 55fb1d88e0ec5e3974d357e6d99a3df2d0ef34eb
3
+ metadata.gz: 6091fa07e493e95800f2eb7b7ea33fc3308584b7
4
+ data.tar.gz: 96b31e002aed0e02b41a01a7ec2cd36cdfedac7d
5
5
  SHA512:
6
- metadata.gz: d8b99b36d0c0024bee898599eda063fe0db6bcb38e02d69edfb811a36a3dbb629152e2cee7f900ce9fc52df15569553815e5c89cebe02907a16bcece4e1d0f36
7
- data.tar.gz: d9251e91a3e6b6933574f04f6661891aa91074235acb2fb9b7cbe079f9121b43fc45f1f70158cc138e5258ee381661716f20f89374d98ab4a8001ed37c919eaa
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(:remote_attributes => attr_map.keys)
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[:remote_attributes]
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]
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.36"
2
+ VERSION = "0.0.37"
3
3
  end
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.36
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-14 00:00:00.000000000 Z
11
+ date: 2016-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails