Sha256: 88bf16b0991fc7330558cded08f09f87d5e75b2ff658fbf4c259e1aaf7cb8eec

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

class Duck < ActiveRecord::Base
  acts_as_messageable
  def mailboxer_email(object)
    case object
    when Message
      return nil
    when Notification
      return email
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mailboxer-without-notification-0.11.2 spec/dummy/app/models/duck.rb
mailboxer-without-notification-0.11.1 spec/dummy/app/models/duck.rb