#101: detecting whether association loaded in ActiveRecord
Solved!
Sometimes you want to check if something's loaded before you hit the db.
loaded, duh
- kueda on August 18, 2010, 11:42 PM UTC
record.has_many_association.loaded?
record.belongs_to_association_loaded?
record.belongs_to_association_loaded?