Permalink
Browse files

removed .to_a

  • Loading branch information...
nuex committed Oct 11, 2009
1 parent ae549d5 commit a938eb36ef6e8daf2f3514c65c669999d69899bf
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/filter_hacks.rb
View
@@ -17,7 +17,7 @@ def append_filter_options method, options
if filter
current_options = filter.instance_variable_get('@options')
options.each_key do |k|
- actions = options[k].to_a.map! { |o| o.to_s }
+ actions = [options[k]].flatten.map! { |o| o.to_s }
current_options[k].merge(actions)
end
end

0 comments on commit a938eb3

Please sign in to comment.