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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c920f87d0a7b46ba8aa7031eb49201b5be9b36f
4
- data.tar.gz: 6f146f97633e3611894daa4e832f257cab5dfa28
3
+ metadata.gz: a40039463c0255eb10918f46734d98a897e09402
4
+ data.tar.gz: 9f68c59443bf3e28b8eeacb118ad1170806d3c2a
5
5
  SHA512:
6
- metadata.gz: 67099c7e7d825ec9253952c4e890801f145f259598d58604207e756bfc3fac0b3f18012e3799c743f80f4a5391bdbec76659644b11aff2c53bfb2c0b7120c049
7
- data.tar.gz: 5b270420fbcd6612de18a6b0087d505e11f17b9085c3e48f2d921a60233b753befe3d1462e1bad75ec2d2c9a0876cd1ad95858871c1f9ad90d4389a3fffe0704
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.demodulize + "_scope"
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.demodulize + "_scope"
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.demodulize + "_scope"
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.demodulize + "_scope"
56
+ name.demodulize.underscore + "_scope"
57
57
  end
58
58
  end
59
59
 
@@ -31,7 +31,7 @@ module ScopedAssociations
31
31
  "#{options[:as]}_scope"
32
32
  else
33
33
  name = active_record.name
34
- name.underscore.demodulize + "_scope"
34
+ name.demodulize.underscore + "_scope"
35
35
  end
36
36
  end
37
37
 
@@ -31,7 +31,7 @@ module ScopedAssociations
31
31
  "#{options[:as]}_scope"
32
32
  else
33
33
  name = active_record.name
34
- name.underscore.demodulize + "_scope"
34
+ name.demodulize.underscore + "_scope"
35
35
  end
36
36
  end
37
37
 
@@ -1,3 +1,3 @@
1
1
  module ScopedAssociations
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-05 00:00:00.000000000 Z
12
+ date: 2017-04-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler