Browse files

Use old hash syntax for Ruby 1.8 support.

  • Loading branch information...
1 parent 2747d9f commit 5e7f18d6ca62a38435945e3e6dc5a1ee4baae4b3 @svendahlstrand svendahlstrand committed Nov 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simple_form/action_view_extensions/builder.rb
View
2 lib/simple_form/action_view_extensions/builder.rb
@@ -307,7 +307,7 @@ def options_from_collection_for_select(collection, value_method, text_method, se
def extract_selected_and_disabled_and_call_procs(selected, collection)
selected, disabled = extract_selected_and_disabled selected
- selected_disabled = { selected: selected, disabled: disabled }
+ selected_disabled = { :selected => selected, :disabled => disabled }
selected_disabled.each do |key, check|
if check.is_a? Proc

0 comments on commit 5e7f18d

Please sign in to comment.