activerecord-collections 0.0.19 → 0.0.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e28b341879dd707e39def6507399f1234cb6a192
|
4
|
+
data.tar.gz: 0fb3b1b2f1903ace1d9c854e6e8590fa51e15ba5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 653911ecdedb4836c23db84d81846a34ce7dcac70f9497d3e58282f9cb5130e10617e0b84a357dbdb4721ffb456c07992516138350e53883c62bf616a98374dc
|
7
|
+
data.tar.gz: 1e7f93b059c156f7281abb62f42e35738ae74ea4efa3dc0cc5edd5dfef8bb070c857f5e76b981fa381b0b08d7aceb48e88d505f8f001589e942eb8ec892e7a7f
|
@@ -23,7 +23,7 @@ module ActiveRecord
|
|
23
23
|
if @collectable.nil?
|
24
24
|
begin
|
25
25
|
klass = self.name.demodulize.singularize.constantize
|
26
|
-
@collectable = klass if !klass.nil
|
26
|
+
@collectable = klass if !klass.nil?# && klass.ancestors.include?(ActiveRecord::Base)
|
27
27
|
rescue
|
28
28
|
# singularized class doesn't exist
|
29
29
|
end
|