Module: Formalism::ModelForms::Select

Extended by:
Base::Plural
Includes:
Base
Defined in:
lib/formalism/model_forms/select.rb

Overview

Base form for many instances of model finding

Instance Attribute Summary

Attributes included from Base

#instance

Instance Method Summary collapse

Methods included from Base

#before_retry

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