Module: Reform::Form::Coercion::ClassMethods

Defined in:
lib/reform/form/coercion.rb

Instance Method Summary collapse

Instance Method Details

#representer_classObject



10
11
12
13
14
15
# File 'lib/reform/form/coercion.rb', line 10

def representer_class
  super.class_eval do
    include Representable::Decorator::Coercion unless self < Representable::Decorator::Coercion # DISCUSS: include it once. why do we have to check this?
    self
  end
end