lib/formtastic/inputs/select_input.rb in formtastic-2.2.1 vs lib/formtastic/inputs/select_input.rb in formtastic-2.3.0.rc

- old
+ new

@@ -196,12 +196,14 @@ end def extra_input_html_options { :multiple => multiple?, - :name => multiple? ? input_html_options_name_multiple : input_html_options_name + :name => (multiple? && Rails::VERSION::MAJOR >= 3) ? input_html_options_name_multiple : input_html_options_name } + + end def input_html_options_name if builder.options.key?(:index) "#{object_name}[#{builder.options[:index]}][#{association_primary_key}]" @@ -230,6 +232,6 @@ !multiple? end end end -end \ No newline at end of file +end