groupify 0.6.1 → 0.6.2

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: 6659ce3db85de12762c3f79c7d6084d83d70572c
4
- data.tar.gz: d739aefd23d01a7da5d56e6ef556af33934f5d2a
3
+ metadata.gz: 4f88acd3be5c8900aa35d7f0d7f1a86c2443dfcf
4
+ data.tar.gz: 5aa05e78a95816fe5c56673cb1dad8ead865090a
5
5
  SHA512:
6
- metadata.gz: fb6ca7c81085a7e848da6a29f04fbe3dd7ae4c00a675814973991bbbb3463eb7986545db4801ec115cf06f26b47928cff819f03e02e3cccaa5c54a28816128b9
7
- data.tar.gz: 2e31869a71ef75b4648798078c1b7f101cb4bce2388a00b61b2fcf926641d677835281427b1fb13cbcea045253c3aed137757758259f5487fecbd4879da8eb41
6
+ metadata.gz: c9ed6a4b163849098b3b54f2347e22494521c4c2073cc0013e445503ff66e807eeca113d27247b83b9d9f0f1d8f745599e345dc36e6163950555a1453b4c51f2
7
+ data.tar.gz: b098c8c0cc68cbfa5e024b52422020f53b8a7c2639bf22987f8933cd2e9bb098e02bc567d1b922211d9074af7ee07f0762ce8f3f57aaf20b96cc70bf9030d764
@@ -136,7 +136,7 @@ module Groupify
136
136
  end
137
137
 
138
138
  def associate_member_class(member_klass)
139
- association_name = member_klass.name.to_s.pluralize.underscore.to_sym
139
+ association_name ||= member_klass.model_name.plural.to_sym
140
140
 
141
141
  has_many association_name, class_name: member_klass.to_s, dependent: :nullify, foreign_key: 'group_ids', extend: MemberAssociationExtensions
142
142
 
@@ -1,3 +1,3 @@
1
1
  module Groupify
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - dwbutler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-16 00:00:00.000000000 Z
11
+ date: 2015-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongoid
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  version: '0'
156
156
  requirements: []
157
157
  rubyforge_project:
158
- rubygems_version: 2.4.2
158
+ rubygems_version: 2.2.2
159
159
  signing_key:
160
160
  specification_version: 4
161
161
  summary: Group functionality for Rails