How to get all associations info from an ActiveRecord model Class?

I have defined in my Library model

belongs_to :academy
has_many :document, :order => :title , :dependent => :destroy

In one of my instance methods, I need to know what’s the order column
defined
so I could write
selfl.class… but the how can I get the association and its
options ?

thanks fyh

erwin

Try:

self.class.reflect_on_association(:documents).options

See:

HTH,
Nicholas