Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

get all the associations of a rails model

Post.reflect_on_all_associations(:has_many)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #associations #rails #model
ADD COMMENT
Topic
Name
9+6 =