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
60 61 62 |
# File 'lib/tramway/forms/properties.rb', line 60 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#__apply_properties(params) ⇒ Object
64 65 66 67 68 |
# File 'lib/tramway/forms/properties.rb', line 64 def __apply_properties(params) self.class.properties.each do |attribute| public_send("#{attribute}=", params[attribute]) if params.key?(attribute) end end |