Method: FormProps::Inputs::Select#initialize
- Defined in:
- lib/form_props/inputs/select.rb
#initialize(object_name, method_name, template_object, choices, options, html_options) ⇒ Select
Returns a new instance of Select.
13 14 15 16 17 18 19 |
# File 'lib/form_props/inputs/select.rb', line 13 def initialize(object_name, method_name, template_object, choices, , ) @choices = choices @choices = @choices.to_a if @choices.is_a?(Range) @html_options = super(object_name, method_name, template_object, ) end |