I would like to know which "has_many" associations my ActiveRecord model
Example, given this model:
class Post < ActiveRecord::Base
I need a method that does this:
@associations = Post.has_many_associations
@association.each do |a|
puts a # should print "comments"
Can you help me ? This method exists ? Is it possible ?