Class: Tasks

Inherits:
Object
  • Object
show all
Defined in:
lib/minder/tasks.rb

Instance Method Summary collapse

Instance Method Details

#by_id(id) ⇒ Object



6
7
8
# File 'lib/minder/tasks.rb', line 6

def by_id(id)
  where(id: id)
end

#filtered_by(text) ⇒ Object



2
3
4
# File 'lib/minder/tasks.rb', line 2

def filtered_by(text)
  where("description LIKE '%#{text}%'")
end