summaryrefslogtreecommitdiff
path: root/app/models/note.rb
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-03-04 12:01:21 +0100
committerRobert Speicher <rspeicher@gmail.com>2016-03-11 15:25:23 -0500
commitd7d5937531350283f6cbd68dead5750227e6d962 (patch)
treeef6c2aaede0877b85bfcb7ac832f23a88b6ea786 /app/models/note.rb
parent0ab9571ad791c608ec258426edb195ae95b45220 (diff)
downloadgitlab-ce-d7d5937531350283f6cbd68dead5750227e6d962.tar.gz
Removed arel_table receiver from search methods
We can just use "arel_table" in these cases instead of "SomeClass.arel_table".
Diffstat (limited to 'app/models/note.rb')
-rw-r--r--app/models/note.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb
index 76e86fdbcaa..8b0610ff77e 100644
--- a/app/models/note.rb
+++ b/app/models/note.rb
@@ -113,7 +113,7 @@ class Note < ActiveRecord::Base
#
# Returns an ActiveRecord::Relation.
def search(query)
- table = Note.arel_table
+ table = arel_table
pattern = "%#{query}%"
where(table[:note].matches(pattern))