module Representable::ModuleExtensions
Public Instance Methods
extended(object)
click to toggle source
Copies the representable_attrs reference to the extended object. Note that changing attrs in the instance will affect the class configuration.
Calls superclass method
# 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