Sha256: 2569c1e579c2d629fba824df6de7de6661fb8178073f406142f004807cdaaf2d

Contents?: true

Size: 245 Bytes

Versions: 8

Compression:

Stored size: 245 Bytes

Contents

class Mailboxer::MessageBuilder < Mailboxer::BaseBuilder

  protected

  def klass
    Mailboxer::Message
  end

  def subject
    params[:subject] || default_subject
  end

  def default_subject
    "#{params[:conversation].subject}"
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mailboxer-0.13.0 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.5 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.4 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.3 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.2 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.1 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.0 app/builders/mailboxer/message_builder.rb
mailboxer-0.12.0.rc2 app/builders/mailboxer/message_builder.rb