Sha256: 95a306fe8d88dda77874a3fa6bd9722641185a9534695307cd226aa6049b12b7

Contents?: true

Size: 195 Bytes

Versions: 19

Compression:

Stored size: 195 Bytes

Contents

class Duck < ActiveRecord::Base
  acts_as_messageable
  
  def should_email?(object)
    case object
    when Message
      return false
    when Notification
      return true
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mailboxer-0.4.3 spec/dummy/app/models/duck.rb
mailboxer-0.4.2 spec/dummy/app/models/duck.rb
mailboxer-0.4.1 spec/dummy/app/models/duck.rb
mailboxer-0.4.0 spec/dummy/app/models/duck.rb
mailboxer-0.3.3 spec/dummy/app/models/duck.rb
mailboxer-0.3.2 spec/dummy/app/models/duck.rb
mailboxer-0.3.1 spec/dummy/app/models/duck.rb
mailboxer-0.3.0 spec/dummy/app/models/duck.rb
mailboxer-0.2.5 spec/dummy/app/models/duck.rb
mailboxer-0.2.4 spec/dummy/app/models/duck.rb
mailboxer-0.2.3 spec/dummy/app/models/duck.rb
mailboxer-0.2.2 spec/dummy/app/models/duck.rb
mailboxer-0.2.1 spec/dummy/app/models/duck.rb
mailboxer-0.2.0 spec/dummy/app/models/duck.rb
mailboxer-0.1.4 spec/dummy/app/models/duck.rb
mailboxer-0.1.3 spec/dummy/app/models/duck.rb
mailboxer-0.1.2 spec/dummy/app/models/duck.rb
mailboxer-0.1.1 spec/dummy/app/models/duck.rb
mailboxer-0.1.0 spec/dummy/app/models/duck.rb