Sha256: 2086cbee967407bfa20469e6994d2a2428f956671ad0325426fa5f2e00bddb15

Contents?: true

Size: 149 Bytes

Versions: 3

Compression:

Stored size: 149 Bytes

Contents

class EmailNotifier < ActiveRecord::Observer
  observe Article, Comment

  def after_save(content)
    content.send_notifications
    true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typo-4.0.2 app/models/email_notifier.rb
typo-4.0.1 app/models/email_notifier.rb
typo-4.0.3 app/models/email_notifier.rb