Sha256: d3d0a4d94ad33ea02c13b5746c2796e78493e1a3e9591775ed20817d8fe503ec

Contents?: true

Size: 193 Bytes

Versions: 22

Compression:

Stored size: 193 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

22 entries across 22 versions & 2 rubygems

Version Path
mailboxer-0.11.0 spec/dummy/app/models/duck.rb
mailboxer-0.10.3 spec/dummy/app/models/duck.rb
curationexperts-mailboxer-0.10.3 spec/dummy/app/models/duck.rb
curationexperts-mailboxer-0.10.3.rc1 spec/dummy/app/models/duck.rb
mailboxer-0.10.2 spec/dummy/app/models/duck.rb
mailboxer-0.10.1 spec/dummy/app/models/duck.rb
mailboxer-0.10.0 spec/dummy/app/models/duck.rb
mailboxer-0.9.0 spec/dummy/app/models/duck.rb
mailboxer-0.8.0 spec/dummy/app/models/duck.rb
mailboxer-0.7.0 spec/dummy/app/models/duck.rb
mailboxer-0.6.5 spec/dummy/app/models/duck.rb
mailboxer-0.6.4 spec/dummy/app/models/duck.rb
mailboxer-0.6.3 spec/dummy/app/models/duck.rb
mailboxer-0.6.2 spec/dummy/app/models/duck.rb
mailboxer-0.6.1 spec/dummy/app/models/duck.rb
mailboxer-0.6.0 spec/dummy/app/models/duck.rb
mailboxer-0.5.5 spec/dummy/app/models/duck.rb
mailboxer-0.5.4 spec/dummy/app/models/duck.rb
mailboxer-0.5.3 spec/dummy/app/models/duck.rb
mailboxer-0.5.2 spec/dummy/app/models/duck.rb