Skip to content
Browse files

Changed the Searchlogic::Search#condition_name method to allow for qu…

…estion-marked methods to pass through silently, ultimately passing them to the scope of the search.
  • Loading branch information...
1 parent 9f79b34 commit d64fdb4cf2fddc14526bdbf0f8eeb2f4042cd69a @laserlemon laserlemon committed with Nov 6, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/searchlogic/search.rb
View
4 lib/searchlogic/search.rb
@@ -129,8 +129,8 @@ def setter?(name)
end
def condition_name(name)
- condition = name.to_s.match(/(\w+)=?$/)[1]
- condition ? condition.to_sym : nil
+ condition = name.to_s.match(/(\w+)=?$/)
+ condition ? condition[1].to_sym : nil
end
def scope_name(condition_name)

0 comments on commit d64fdb4

Please sign in to comment.
Something went wrong with that request. Please try again.