theforeman/foreman — pull request #310 by isratrade (2012-12-16 11:21:31+00:00)
Title: fixes #2045 changed condition so there is no error in Postgresql

@ohadlevy, I can also strip any single quotes which currently causes a SQL error and all records are returned.

Should I add to search.rb

```ruby
def self.value_to_sql(operator, value)
+ value = value.gsub(/'/,"") #single quotes caused SQL error in Postgres
```