Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
diff --git a/mongomapper-inherit-one/mm.rb b/mongomapper-inherit-one/mm.rb
index b7cf1e5..5b727a2 100644
--- a/mongomapper-inherit-one/mm.rb
+++ b/mongomapper-inherit-one/mm.rb
@@ -29,6 +29,7 @@ class Membership
end
class WrapUser < User
+ one :membership, foreign_key: :user_id
end
wrap_user = WrapUser.create!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment