remove notify checkboxes from note forms

This commit is contained in:
Dmitriy Zaporozhets 2013-03-28 15:39:18 +02:00
parent 70947fedda
commit 5ad4be295f
5 changed files with 12 additions and 30 deletions

View file

@ -22,9 +22,6 @@ class Note < ActiveRecord::Base
attr_accessible :note, :noteable, :noteable_id, :noteable_type, :project_id,
:attachment, :line_code, :commit_id
attr_accessor :notify
attr_accessor :notify_author
belongs_to :project
belongs_to :noteable, polymorphic: true
belongs_to :author, class_name: "User"
@ -143,14 +140,6 @@ class Note < ActiveRecord::Base
nil
end
def notify
@notify ||= false
end
def notify_author
@notify_author ||= false
end
# Returns true if this is an upvote note,
# otherwise false is returned
def upvote?