Method: Reform::Form::Composition::ClassMethods#property

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

#property(name, options = {}) ⇒ Object



19
20
21
22
23
# File 'lib/reform/form/composition.rb', line 19

def property(name, options={})
  super.tap do |definition|
    handle_deprecated_model_accessor(options[:on]) unless options[:skip_accessors] # TODO: remove in 1.2.
  end
end