scoped_associations 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/scoped_associations/activerecord4/has_many.rb +2 -2
- data/lib/scoped_associations/activerecord4/has_one.rb +2 -2
- data/lib/scoped_associations/activerecord5/has_many.rb +1 -1
- data/lib/scoped_associations/activerecord5/has_one.rb +1 -1
- data/lib/scoped_associations/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a40039463c0255eb10918f46734d98a897e09402
|
4
|
+
data.tar.gz: 9f68c59443bf3e28b8eeacb118ad1170806d3c2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60d5dc5d41a48786152e9af5e94433fc1f3a2fcee633048f6bd69f54422f7bb1f04f3e62b84c85f20b8887b4f0515d26bf46629955b1f1eaa69bbdef375c56da
|
7
|
+
data.tar.gz: b979eb3a7a2b7961ec3517b29c320d10bb0a724076180b3031b05a75bcb1c4202fe573bf21458b7cb870d6ba275e5375f6e5538c7ce8f8e73bd2af92f0096f41
|
@@ -31,7 +31,7 @@ module ScopedAssociations
|
|
31
31
|
if options[:as]
|
32
32
|
"#{options[:as]}_scope"
|
33
33
|
else
|
34
|
-
model.name.underscore
|
34
|
+
model.name.demodulize.underscore + "_scope"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -53,7 +53,7 @@ module ScopedAssociations
|
|
53
53
|
"#{options[:as]}_scope"
|
54
54
|
else
|
55
55
|
name = active_record.name
|
56
|
-
name.underscore
|
56
|
+
name.demodulize.underscore + "_scope"
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
@@ -31,7 +31,7 @@ module ScopedAssociations
|
|
31
31
|
if options[:as]
|
32
32
|
"#{options[:as]}_scope"
|
33
33
|
else
|
34
|
-
model.name.underscore
|
34
|
+
model.name.demodulize.underscore + "_scope"
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -53,7 +53,7 @@ module ScopedAssociations
|
|
53
53
|
"#{options[:as]}_scope"
|
54
54
|
else
|
55
55
|
name = active_record.name
|
56
|
-
name.underscore
|
56
|
+
name.demodulize.underscore + "_scope"
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scoped_associations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefano Verna
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|