prim 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/prim/relationship.rb +1 -1
- data/prim.gemspec +2 -2
- metadata +2 -2
data/lib/prim/relationship.rb
CHANGED
|
@@ -42,7 +42,7 @@ module Prim
|
|
|
42
42
|
|
|
43
43
|
# The association method to call on the owning class to retrieve a record's collection.
|
|
44
44
|
def collection_label
|
|
45
|
-
options[:through] || mapping_reflection.plural_name
|
|
45
|
+
(options[:through] || mapping_reflection.plural_name).to_sym
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
# The class of the reflection source: i.e. Post if the owning class `has_many :posts`.
|
data/prim.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = "prim"
|
|
3
|
-
s.version = "0.0.
|
|
4
|
-
s.date = "2013-01-
|
|
3
|
+
s.version = "0.0.7"
|
|
4
|
+
s.date = "2013-01-14"
|
|
5
5
|
s.summary = "Easily manage Rails associations that need a primary member."
|
|
6
6
|
s.description = "With Prim it's easy to add a primary member to any one-to-many or many-to-many association. " +
|
|
7
7
|
"Just add a short configuration to a model, generate and run a migration, and you're all set."
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prim
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
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: 2013-01-
|
|
12
|
+
date: 2013-01-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activerecord
|