trustieforge/app/models/journals_for_message_observ...

8 lines
207 B
Ruby

# Added by young
class JournalsForMessageObserver < ActiveRecord::Observer
def after_create(journals_for_message)
Mailer.run.journals_for_message_add(User.current, journals_for_message)
end
end