Try: self.class.reflect_on_association(:documents).options
See: http://api.rubyonrails.org/classes/ActiveRecord/Reflection/ClassMethods.html HTH, Nicholas On Jun 24, 7:16 am, Erwin <[email protected]> wrote: > 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

