Skip to content

Instantly share code, notes, and snippets.

@benlovell
Created February 18, 2016 22:20
Show Gist options
  • Save benlovell/fca7b88ac889070f8240 to your computer and use it in GitHub Desktop.
Save benlovell/fca7b88ac889070f8240 to your computer and use it in GitHub Desktop.
puts User.ancestors
User
User::GeneratedAssociationMethods
#<#<Class:0x007f81401fdb28>:0x007f81401fdec0>
ActiveRecord::Base
GlobalID::Identification
ActiveModel::Observing
ActiveRecord::Store
ActiveRecord::Serialization
ActiveModel::Serializers::Xml
ActiveModel::Serializers::JSON
ActiveModel::Serialization
ActiveRecord::Reflection
ActiveRecord::NoTouching
ActiveRecord::Transactions
ActiveRecord::Aggregations
ActiveRecord::NestedAttributes
ActiveRecord::AutosaveAssociation
ActiveModel::SecurePassword
ActiveRecord::Associations
ActiveRecord::Timestamp
ActiveModel::Validations::Callbacks
ActiveRecord::Callbacks
ActiveRecord::AttributeMethods::Serialization
ActiveRecord::AttributeMethods::Dirty
ActiveModel::Dirty
ActiveRecord::AttributeMethods::TimeZoneConversion
ActiveRecord::AttributeMethods::PrimaryKey
ActiveRecord::AttributeMethods::Query
ActiveRecord::AttributeMethods::BeforeTypeCast
ActiveRecord::AttributeMethods::Write
ActiveRecord::AttributeMethods::Read
ActiveRecord::Base::GeneratedAssociationMethods
#<#<Class:0x007f813a1eb410>:0x007f813a1eb4d8>
ActiveRecord::AttributeMethods
ActiveModel::AttributeMethods
ActiveRecord::Locking::Pessimistic
ActiveRecord::Locking::Optimistic
ActiveRecord::AttributeDecorators
ActiveRecord::Attributes
ActiveRecord::CounterCache
ActiveRecord::Validations
ActiveModel::Validations::HelperMethods
ActiveSupport::Callbacks
ActiveModel::Validations
ActiveRecord::Integration
ActiveModel::Conversion
ActiveRecord::AttributeAssignment
ActiveModel::ForbiddenAttributesProtection
ActiveRecord::Sanitization
ActiveRecord::Scoping::Named
ActiveRecord::Scoping::Default
ActiveRecord::Scoping
ActiveRecord::Inheritance
ActiveRecord::ModelSchema
ActiveRecord::ReadonlyAttributes
ActiveRecord::Persistence
ActiveRecord::Core
Object
PP::ObjectMixin
ActiveSupport::Dependencies::Loadable
JSON::Ext::Generator::GeneratorMethods::Object
Kernel
BasicObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment