class ActiveRecord::Reflection::AssociationReflection

Public Instance Methods

derive_class_from_association() click to toggle source

get class name from the association symbol ex: Contact.contact_notes.derive_class_from_association()

# File lib/marskal_search/marskal_active_record_extensions.rb, line 10
def derive_class_from_association()
  eval self.class_name||self.name.to_s.classify
end