Module: Dragonfly::DataMapperExtensions

Defined in:
lib/dm-dragonfly.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/dm-dragonfly.rb', line 5

def self.extended(klass)
  klass.extend(ClassMethods)
  klass.extend(ActiveModelExtensions::ClassMethods)
  
  klass.class_eval do
    include InstanceMethods
    include ActiveModelExtensions::InstanceMethods
  end
end