Hi!
How can I get all relationships for model. IE, I've got User
model:
class User < AR::Base
has_many :messages, :foreign_key => 'author'
has_many :posts
belongs_to :role
end
So how can I know which relationships User
model has got? And foreign_keys if they are presented.