Notification refactoring

This commit is contained in:
Valery Sizov 2011-12-17 15:58:35 +02:00
parent f7859ec1ed
commit 7713f7fefb
7 changed files with 55 additions and 28 deletions

View file

@ -13,6 +13,7 @@ class Note < ActiveRecord::Base
:prefix => true
attr_protected :author, :author_id
attr_accessor :notify
validates_presence_of :project
@ -35,6 +36,10 @@ class Note < ActiveRecord::Base
scope :inc_author, includes(:author)
mount_uploader :attachment, AttachmentUploader
def notify
@notify ||= false
end
end
# == Schema Information
#