prim 0.0.4 → 0.0.5

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/README.md CHANGED
@@ -71,6 +71,15 @@ User.first.primary_language
71
71
  => #<Language id: 5, name: "English" ... >
72
72
  ```
73
73
 
74
+
75
+ Notes
76
+ -----
77
+
78
+ * Currently only supports ActiveRecord with an SQL data store like PostgreSQL, MySQL, or MariaDB. More support coming soon.
79
+ * Primary management is automatically added to subclasses of ActiveRecord::Base, so your data models need to inherit from that.
80
+ * At the very least Prim requires ActiveRecord 3.2 and ActiveSupport 3.2.
81
+
82
+
74
83
  Contributing
75
84
  ------------
76
85
 
@@ -1,3 +1,5 @@
1
+ require 'active_support/core_ext/object/try'
2
+
1
3
  module Prim
2
4
  # Collection largely wraps an association collection (like a Relation) but adds
3
5
  # the concept of a primary member. Collections can only exist in the context of
data/prim.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "prim"
3
- s.version = "0.0.4"
3
+ s.version = "0.0.5"
4
4
  s.date = "2013-01-02"
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. " +
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
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: