Module: Reform::Form::ActiveModel
- Defined in:
- lib/reform/form/active_model.rb
Defined Under Namespace
Modules: ClassMethods, FormBuilderMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/reform/form/active_model.rb', line 39 def self.included(base) base.class_eval do extend ClassMethods delegate [:persisted?, :to_key, :to_param, :id] => :model def to_model # this is called somewhere in FormBuilder and ActionController. self end end end |