Module: MailForm::Delivery::Deprecated
- Defined in:
- lib/mail_form/delivery.rb
Instance Method Summary collapse
- #headers(hash) ⇒ Object
- #recipients(duck = nil, &block) ⇒ Object (also: #to)
- #sender(duck = nil, &block) ⇒ Object (also: #from)
- #subject(duck = nil, &block) ⇒ Object
- #template(new_template) ⇒ Object
Instance Method Details
#headers(hash) ⇒ Object
45 46 47 48 |
# File 'lib/mail_form/delivery.rb', line 45 def headers(hash) ActiveSupport::Deprecation.warn "headers is deprecated. Please define a headers method " << "in your instance which returns the desired headers instead.", caller end |
#recipients(duck = nil, &block) ⇒ Object Also known as: to
39 40 41 42 |
# File 'lib/mail_form/delivery.rb', line 39 def recipients(duck=nil, &block) ActiveSupport::Deprecation.warn "to/recipients is deprecated. Please define a headers method " << "in your instance which returns a hash with :to as key instead.", caller end |
#sender(duck = nil, &block) ⇒ Object Also known as: from
33 34 35 36 |
# File 'lib/mail_form/delivery.rb', line 33 def sender(duck=nil, &block) ActiveSupport::Deprecation.warn "from/sender is deprecated. Please define a headers method " << "in your instance which returns a hash with :from as key instead.", caller end |
#subject(duck = nil, &block) ⇒ Object
28 29 30 31 |
# File 'lib/mail_form/delivery.rb', line 28 def subject(duck=nil, &block) ActiveSupport::Deprecation.warn "subject is deprecated. Please define a headers method " << "in your instance which returns a hash with :subject as key instead.", caller end |
#template(new_template) ⇒ Object
50 51 52 53 |
# File 'lib/mail_form/delivery.rb', line 50 def template(new_template) ActiveSupport::Deprecation.warn "template is deprecated. Please define a headers method " << "in your instance which returns a hash with :template_name as key instead.", caller end |