Module: AWS::Record::AbstractBase

Included in:
HashModel, Model
Defined in:
lib/aws/record/abstract_base.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object


29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/aws/record/abstract_base.rb', line 29

def self.extended base

  base.send(:extend, ClassMethods)
  base.send(:include, InstanceMethods)
  base.send(:include, DirtyTracking)
  base.send(:extend, Validations)

  # these 3 modules are for rails 3+ active model compatability
  base.send(:extend, Naming)
  base.send(:include, Naming)
  base.send(:include, Conversion)

end