Notification refactoring
This commit is contained in:
parent
f7859ec1ed
commit
7713f7fefb
7 changed files with 55 additions and 28 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue