Module: Representable::ModuleExtensions

Defined in:
lib/representable.rb

Instance Method Summary collapse

Instance Method Details

#extended(object) ⇒ Object

Copies the representable_attrs reference to the extended object. Note that changing attrs in the instance will affect the class configuration.



102
103
104
105
# File 'lib/representable.rb', line 102

def extended(object)
  super
  object.representable_attrs=(representable_attrs) # yes, we want a hard overwrite here and no inheritance.
end