Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated searchgasm

  • Loading branch information...
commit f53b39fa9eb7d9fc73898557d0f0f2f51e99a2ed 1 parent ab98c54
@binarylogic authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.