minor code style fixing

This commit is contained in:
Valeriy Sizov 2012-10-08 18:54:51 +03:00
parent f6a8e69449
commit 3b5c7b6e9a

View file

@ -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