minor code style fixing
This commit is contained in:
parent
f6a8e69449
commit
3b5c7b6e9a
|
@ -23,7 +23,7 @@ class MergeRequest < ActiveRecord::Base
|
|||
validate :validate_branches
|
||||
|
||||
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
|
||||
|
||||
def human_state
|
||||
|
|
Loading…
Reference in a new issue