From 3b5c7b6e9aead85ffaa5d669639e69989da8a5b8 Mon Sep 17 00:00:00 2001 From: Valeriy Sizov Date: Mon, 8 Oct 2012 18:54:51 +0300 Subject: [PATCH] minor code style fixing --- app/models/merge_request.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 5b3c3724..f4644dac 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -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