Module: ActiveScaffold::Bridges::UsaStateSelect::FormColumnHelpers

Defined in:
lib/active_scaffold/bridges/usa_state_select/usa_state_select_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_scaffold_input_usa_state(column, options) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/active_scaffold/bridges/usa_state_select/usa_state_select_helper.rb', line 61

def active_scaffold_input_usa_state(column, options)
  select_options = {:prompt => as_(:_select_)}
  select_options.merge!(options)
  options.reverse_merge!(column.options).except!(:prompt, :priority)
  active_scaffold_select_name_with_multiple options
  usa_state_select(:record, column.name, column.options[:priority], select_options, options.except(:object))
end