sql for mysql compatible

This commit is contained in:
Valery Sizov 2012-01-19 21:44:10 +02:00
parent 9b6c9fe253
commit fc36df92da
3 changed files with 2 additions and 13 deletions

View file

@ -171,7 +171,7 @@ class Project < ActiveRecord::Base
end
def commit_line_notes(commit)
notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code not null")
notes.where(:noteable_id => commit.id, :noteable_type => "Commit").where("line_code is not null")
end
def has_commits?