effective_resources 0.3.0 → 0.3.1

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: c8670335e749c4dfd51af3948b37cbdb7b4051ee
4
- data.tar.gz: 82ee3513ad299bee24a8bf6e76893224f2fb85d9
3
+ metadata.gz: 488cbf22654ca463eac33ddf0959d478c99326f4
4
+ data.tar.gz: 02805f17044dd8e11c008e4167c8952944ff55da
5
5
  SHA512:
6
- metadata.gz: e96e5c5b6b876e9389b44d6778958200b363d29d16a70a628c5c9ef1eb1eaad9f2349aa84cd92eb0757ce1fafc7e8c107352c9f1b6ea225d6a405c547121100e
7
- data.tar.gz: 076396560c96b7c4d9951dc3ceff5a2864ac749703d604b6d1e9a09c5d41838a96eca592f832d1b5b2fb148c43a60c0857dfda64cfbae879df0973bf3a6ec83a
6
+ metadata.gz: 26985ddc593f52bec5d528ee17d81460e9b199e8298ae44d7890333fdde845f68ce5068accc83cbc6d8e1611da08560afb404e1ab65482f4950326d17c6a9c13
7
+ data.tar.gz: 5d1253caca41eb0eb6407110b0c104cc7c8bd26d56f8537b4e3f8c6af52e8100dc09e73471e74c425baae44f6832494d1221740ff9b5f8372e2647d0588845d9
@@ -18,7 +18,7 @@ module Effective
18
18
  when ActiveRecord::Relation
19
19
  input.klass
20
20
  when ActiveRecord::Reflection::AbstractReflection
21
- @model_klass = input.klass
21
+ @model_klass = input.klass unless input.options[:polymorphic]
22
22
  input.name
23
23
  when ActionDispatch::Journey::Route
24
24
  input.defaults[:controller]
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect