Commit 3b5c7b6e9aead85ffaa5d669639e69989da8a5b8

Authored by Valeriy Sizov
1 parent f6a8e694

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 23 validate :validate_branches
24 24  
25 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 27 end
28 28  
29 29 def human_state
... ...