Module: Representable::ModuleExtensions

Defined in:
lib/representable.rb

Instance Method Summary collapse

Instance Method Details

#extended(object) ⇒ Object

Copies the representable_attrs to the extended object.



74
75
76
77
# File 'lib/representable.rb', line 74

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