Module: Dragonfly::Model

Defined in:
lib/dragonfly/model.rb,
lib/dragonfly/model/attachment.rb,
lib/dragonfly/model/validations.rb,
lib/dragonfly/model/class_methods.rb,
lib/dragonfly/model/instance_methods.rb,
lib/dragonfly/model/attachment_class_methods.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, Validations Classes: Attachment

Class Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object


7
8
9
10
11
12
# File 'lib/dragonfly/model.rb', line 7

def self.extended(klass)
  unless klass.include?(InstanceMethods)
    klass.extend(ClassMethods)
    klass.class_eval{ include InstanceMethods }
  end
end