README in bigamy-0.2.0 vs README in bigamy-0.2.1
- old
+ new
@@ -1,25 +1,21 @@
= Bigamy
Enable seamless Ruby-ness between ActiveRecord objects & MongoMapper documents
class User < ActiveRecord::Base
- Bigamy.setup self
-
has_one_mm :doc
has_many_mm :photos
end
class Doc
include MongoMapper::Document
- Bigamy.setup self
belongs_to_ar :user
end
class Photo
include MongoMapper::Document
- Bigamy.setup self
belongs_to_ar :user
end
@@ -54,13 +50,10 @@
All class methods take :foreign_key, :class, and :primary_key options as a hash
== Setup
-Bigamy.setup can take any number of classes as arguments, and can be in an initializer like:
-
-Bigamy.setup User, Doc
-
+Bigamy installs itself into MongoMapper and ActiveRecord automatically.
= License
Bigmay is released under the MIT license.
It's developed by Ryan Angilly and released with the permission of MyPunchbowl.com