unscoped_associations 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -46,7 +46,7 @@ module UnscopedAssociations
|
|
46
46
|
|
47
47
|
def add_unscoped_association(association_name)
|
48
48
|
define_method(association_name) do
|
49
|
-
if self.class.reflect_on_association(association_name).polymorphic
|
49
|
+
if self.class.reflect_on_association(association_name).options.key?(:polymorphic)
|
50
50
|
self.association(association_name).klass.unscoped do
|
51
51
|
super(association_name)
|
52
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unscoped_associations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-04-
|
12
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|