On Nov 19, 8:02 pm, Misiek Sz <[EMAIL PROTECTED]>
wrote:
> Is there a method to find out whether given column is an association or
> not?
> For example, I would like iterate through all columns in a given record
> and do something for each column that is an association.
You might want to approach thing from the other end:
SomeClass.reflections gives you an object for each assocation (and
aggregation) a class has.
Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---