Groups
Groups
Sign in
Groups
Groups
Mongoid
Conversations
About
Send feedback
Help
what options could be used in has_many ?
331 views
Skip to first unread message
RainChen
unread,
Apr 10, 2012, 5:21:53 AM
4/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mon...@googlegroups.com
What options could be? need more info, like rails api do:
http://www.rubydoc.info/docs/rails/3.1.1/ActiveRecord/Associations/ClassMethods:has_many
PS: I also commented on rubydoc:
http://www.rubydoc.info/github/mongoid/mongoid/master/Mongoid/Relations/Macros/ClassMethods:has_many
rubydoc is a good tools for reading api documents
Durran Jordan
unread,
Apr 10, 2012, 6:47:31 AM
4/10/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mon...@googlegroups.com
:as
,
:autosave
,
:dependent
,
:foreign_key
,
:order
https://github.com/mongoid/mongoid/blob/master/lib/mongoid/relations/referenced/many.rb#L684
You can also try any option you want, if you entered a bad one, Mongoid would raise an error and give you a list of what is valid.
2012/4/10 RainChen
<
hirai...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages