diff options
Diffstat (limited to 'app/models/runner.rb')
-rw-r--r-- | app/models/runner.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/runner.rb b/app/models/runner.rb index a0a198c..d3417bd 100644 --- a/app/models/runner.rb +++ b/app/models/runner.rb @@ -18,6 +18,8 @@ # class Runner < ActiveRecord::Base + extend Model + has_many :builds has_many :runner_projects, dependent: :destroy has_many :projects, through: :runner_projects @@ -34,7 +36,7 @@ class Runner < ActiveRecord::Base acts_as_taggable def self.search(query) - where('LOWER(runners.token) LIKE :query OR LOWER(runners.description) like :query', + where('LOWER(ci_runners.token) LIKE :query OR LOWER(ci_runners.description) like :query', query: "%#{query.try(:downcase)}%") end |