lib/searchlogic/helpers/form.rb in searchlogic-1.5.4 vs lib/searchlogic/helpers/form.rb in searchlogic-1.5.6

- old
+ new

@@ -68,10 +68,10 @@ # Rearrange args with name first, search_obj second case first when String, Symbol args.unshift(search_object).unshift(first) else - name = search_object.is_a?(Conditions::Base) ? (search_object.relationship_name || :conditions) : :search + name = search_object.is_a?(Conditions::Base) ? (search_object.object_name || :conditions) : :search args.unshift(search_object).unshift(name) end # Now that we are consistent, get the name name = args.first \ No newline at end of file