Created
March 2, 2012 16:40
-
-
Save benwoodward/1959549 to your computer and use it in GitHub Desktop.
mongomapper multiple has many relationships
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Event | |
many :attendees, :class_name => "User" | |
many :interested, :class_name => "User" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment