Browse files

Updated searchgasm

  • Loading branch information...
1 parent ab98c54 commit f53b39fa9eb7d9fc73898557d0f0f2f51e99a2ed @binarylogic committed Sep 7, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 vendor/plugins/searchgasm-0.9.7/lib/searchgasm/helpers/search_helper.rb
View
2 vendor/plugins/searchgasm-0.9.7/lib/searchgasm/helpers/search_helper.rb
@@ -164,7 +164,7 @@ def determine_order_by_text(column_name, relationship_name = nil)
when String, Symbol
relationship_name.blank? ? column_name.titleize : "#{relationship_name.titleize} #{column_name.titleize}"
when Array
- determine_order_by_text(column_name.last)
+ determine_order_by_text(column_name.first)
when Hash
k = column_name.keys.first
v = column_name.values.first

0 comments on commit f53b39f

Please sign in to comment.