active_tools 0.0.16 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 249bc84738b736bbeb3e1d65bbded3ce140f624a
4
- data.tar.gz: 02a900d5bb6f25876560c7d9672eb300b33f5245
3
+ metadata.gz: c5ba5b8fe10ee75b87f277afa16d735304c811a8
4
+ data.tar.gz: 26e33d56068d147c44c00b5f6aab47b1dd062a08
5
5
  SHA512:
6
- metadata.gz: 36d73460fe8ea74b1bb0e09c53d0577f942e5bb422108937086d38c2fccb62e69999290d54c1e6ebc833aa7979313cf923093495dc82c57f1cc7a9e576a985b8
7
- data.tar.gz: a157672e10e3f118b3a6ed297c0d478c0ba807b858902646769672bd713105a464a5e4e2841aaf4fdb2afea0f55f066b15e3bd6e0fe9978afba41a2d20831b1a
6
+ metadata.gz: f3a0980c7359b0d2d42a1845c435f225cfd2f1d2aaaa112a13962238830c1fc1edc45db797c18638dc130457b7c171c6f82a03f308c88cde5f115663f8468704
7
+ data.tar.gz: 62fc295205c2a7f3fbbd0eaf2ee8410ea9132df34c4e13b4e268d94f6b9348820f3314846526c7f6921110be362e869136107fcff1b8518f095951fdc1f35697
@@ -32,8 +32,8 @@ module ActiveTools
32
32
  if (@_after_create_custom_counter_called ||= false)
33
33
  @_after_create_custom_counter_called = false
34
34
  elsif !new_record? && record_changed
35
- model = reflection.polymorphic? ? attribute(reflection.foreign_type).try(:constantize) : reflection.klass
36
- model_was = reflection.polymorphic? ? attribute_was(reflection.foreign_type).try(:constantize) : reflection.klass
35
+ model = reflection.options[:polymorphic] ? attribute(reflection.foreign_type).try(:constantize) : reflection.klass
36
+ model_was = reflection.options[:polymorphic] ? attribute_was(reflection.foreign_type).try(:constantize) : reflection.klass
37
37
  foreign_key = attribute(reflection.foreign_key)
38
38
  foreign_key_was = attribute_was(reflection.foreign_key)
39
39
 
@@ -1,3 +1,3 @@
1
1
  module ActiveTools
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Valery Kvon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-02 00:00:00.000000000 Z
11
+ date: 2014-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails