Migration logic from SearchView to a controller, where it should be.

This commit is contained in:
Robin Ward
2013-05-23 17:42:57 -04:00
parent 9d0e830786
commit eb0c102931
6 changed files with 124 additions and 143 deletions

View File

@ -28,7 +28,6 @@ class Search
end
def initialize(term, opts=nil)
if term.present?
@term = term.to_s
@original_term = PG::Connection.escape_string(@term)