Search improved
This commit is contained in:
parent
8dc2989665
commit
5f31989a05
4 changed files with 51 additions and 22 deletions
|
@ -42,6 +42,10 @@ class Issue < ActiveRecord::Base
|
|||
opened.assigned(user)
|
||||
end
|
||||
|
||||
def self.search query
|
||||
where("title like :query", :query => "%#{query}%")
|
||||
end
|
||||
|
||||
def today?
|
||||
Date.today == created_at.to_date
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue