Commit 3b5c7b6e9aead85ffaa5d669639e69989da8a5b8
1 parent
f6a8e694
Exists in
master
and in
4 other branches
minor code style fixing
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/merge_request.rb
@@ -23,7 +23,7 @@ class MergeRequest < ActiveRecord::Base | @@ -23,7 +23,7 @@ class MergeRequest < ActiveRecord::Base | ||
23 | validate :validate_branches | 23 | validate :validate_branches |
24 | 24 | ||
25 | def self.find_all_by_branch(branch_name) | 25 | def self.find_all_by_branch(branch_name) |
26 | - where("source_branch like :branch or target_branch like :branch", branch: branch_name) | 26 | + where("source_branch LIKE :branch OR target_branch LIKE :branch", branch: branch_name) |
27 | end | 27 | end |
28 | 28 | ||
29 | def human_state | 29 | def human_state |