6 lines
185 B
Ruby
6 lines
185 B
Ruby
|
class DocumentObserver < ActiveRecord::Observer
|
||
|
def after_create(document)
|
||
|
Mailer.deliver_document_added(document) if Setting.notified_events.include?('document_added')
|
||
|
end
|
||
|
end
|