Skip to content

Instantly share code, notes, and snippets.

@dangjlin
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dangjlin/0e32ff77c64bd3b87ce9 to your computer and use it in GitHub Desktop.
Save dangjlin/0e32ff77c64bd3b87ce9 to your computer and use it in GitHub Desktop.
module ActiveRecord
class Base
extend ActiveModel::Naming
extend ActiveSupport::Benchmarkable
...
...
extend Translation
extend DynamicMatchers
extend Explain
extend Enum
extend Delegation::DelegateCache
include Core
include Persistence
include NoTouching
include ActiveModel::Conversion
include Integration
include Validations
...
...
include AttributeMethods
include Callbacks
include Timestamp
include Associations
include ActiveModel::SecurePassword
include Serialization
include Store
include Core
end
ActiveSupport.run_load_hooks(:active_record, Base)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment