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 +4 -4
- data/app/models/effective/resources/init.rb +1 -1
- data/lib/effective_resources/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 488cbf22654ca463eac33ddf0959d478c99326f4
|
4
|
+
data.tar.gz: 02805f17044dd8e11c008e4167c8952944ff55da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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]
|