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.



91
92
93
94
# File 'lib/representable.rb', line 91

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