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.



107
108
109
110
# File 'lib/representable.rb', line 107

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