Module: Tramway::Forms::Properties
- Included in:
- BaseForm
- Defined in:
- lib/tramway/forms/properties.rb
Overview
This is ‘properties`. The main feature of Tramway Form
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
54 55 56 |
# File 'lib/tramway/forms/properties.rb', line 54 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#__apply_properties(params) ⇒ Object
58 59 60 61 62 |
# File 'lib/tramway/forms/properties.rb', line 58 def __apply_properties(params) self.class.properties.each do |attribute| public_send("#{attribute}=", params[attribute]) if params.key?(attribute) end end |