Module: Formalism::ModelForms::Select
Overview
Base form for many instances of model finding
Instance Attribute Summary
Attributes included from Base
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#initialize(params_or_instance = {}) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/formalism/model_forms/select.rb', line 12 def initialize(params_or_instance = {}) ## Instance should be an `Array` if there is not `params` params_or_instance = params_or_instance.to_a unless params_or_instance.is_a?(Hash) super end |