Sha256: be18f78871eb607d45292d16348c1d98cd028c19258a00d7d9d203f8b70fc1e6

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

class AdminNotifier < ApplicationNotifier
  def success(recipient)
    notify_success("#{recipient.class}##{__method__}")
  end

  def failure(recipient)
    notify_failure("#{recipient.class}##{__method__}")
  end

  def only_admin(recipient)
    notify_success("#{recipient.class}##{__method__}")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pubsub_notifier-0.1.1 spec/support/notifiers/admin_notifier.rb
pubsub_notifier-0.1.0 spec/support/notifiers/admin_notifier.rb