Commit 3b5c7b6e authored by Valeriy Sizov's avatar Valeriy Sizov

minor code style fixing

parent f6a8e694
...@@ -23,7 +23,7 @@ class MergeRequest < ActiveRecord::Base ...@@ -23,7 +23,7 @@ class MergeRequest < ActiveRecord::Base
validate :validate_branches validate :validate_branches
def self.find_all_by_branch(branch_name) def self.find_all_by_branch(branch_name)
where("source_branch like :branch or target_branch like :branch", branch: branch_name) where("source_branch LIKE :branch OR target_branch LIKE :branch", branch: branch_name)
end end
def human_state def human_state
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment