Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created May 19, 2012 16:51
Show Gist options
  • Select an option

  • Save practicingruby/2731474 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/2731474 to your computer and use it in GitHub Desktop.
>> User.ancestors
=> [User(...), ActiveRecord::Base, ActiveRecord::Aggregations, ActiveRecord::Transactions, 
ActiveRecord::Reflection, ActiveRecord::Serialization, ActiveModel::Serializers::Xml, 
ActiveModel::Serializers::JSON, ActiveModel::Serialization, ActiveRecord::AutosaveAssociation, 
ActiveRecord::NestedAttributes, ActiveModel::SecurePassword, ActiveRecord::IdentityMap, 
ActiveRecord::Associations, ActiveRecord::NamedScope, ActiveModel::Validations::Callbacks, 
ActiveRecord::Callbacks, ActiveModel::Observing, ActiveRecord::Timestamp, 
ActiveModel::MassAssignmentSecurity, ActiveRecord::AttributeMethods::Dirty, ActiveModel::Dirty, ActiveRecord::AttributeMethods::TimeZoneConversion, ActiveRecord::AttributeMethods::PrimaryKey, 
ActiveRecord::AttributeMethods::Read, ActiveRecord::AttributeMethods::Write, 
ActiveRecord::AttributeMethods::BeforeTypeCast, #<Module:0x000001030c2e58>, 
ActiveRecord::AttributeMethods::Query, ActiveRecord::AttributeMethods, ActiveModel::AttributeMethods, 
ActiveRecord::Locking::Optimistic, ActiveRecord::Locking::Pessimistic, ActiveRecord::Validations,
 ActiveModel::Validations::HelperMethods, ActiveModel::Validations, 
ActiveSupport::Callbacks, ActiveModel::Conversion, ActiveRecord::Persistence, Object,
 PP::ObjectMixin, Delayed::MessageSending, JSON::Ext::Generator::GeneratorMethods::Object,
 ActiveSupport::Dependencies::Loadable, Kernel, BasicObject]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment