Ruby on Rails
Go to file
Matthew Rudy Jacobs f4f76772fb abstract all of the ActionMailer delivery methods into their own classes. thereby the following are equivalent
ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.delivery_method = ActionMailer::DeliveryMethod::Smtp

we could equally set our own custom object
as long as it provides the instance method :perform_delivery(mail)

eg.

  class MySmsDeliveryMethod
    def perform_delivery(mail)
      Sms.send(mail['to'], mail['body'])
    end
  end

  MySmsMailer.delivery_method = MySmsDeliveryMethod.new

Signed-off-by: José Valim <jose.valim@gmail.com>
2009-11-01 02:23:47 +01:00
actionmailer abstract all of the ActionMailer delivery methods into their own classes. thereby the following are equivalent 2009-11-01 02:23:47 +01:00
actionpack Caching refactoring 2009-10-29 00:44:12 -04:00
activemodel Fix error_messages_for when instance variable names are given. 2009-10-21 11:18:36 -05:00
activerecord Move validator, human_name and human_attribute_name to ActiveModel, remove deprecated error messages and add i18n_scope and lookup_ancestors. 2009-10-20 17:52:32 -07:00
activeresource Have all the tests running off a single Gemfile 2009-10-20 16:34:44 -07:00
activesupport Remove the random line at the beginning of every new log file 2009-10-29 08:05:41 +01:00
ci Remove old per-component bundled environments first 2009-10-27 02:03:25 -07:00
doc/template Horo rdoc template 2008-06-22 10:38:25 -07:00
railties Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved] 2009-10-28 16:54:38 -04:00
tools Rename tools/profile_requires -> tools/profile since we do both require and ruby-prof profiling. 2009-05-27 01:11:33 -05:00
.gitignore Have all the tests running off a single Gemfile 2009-10-20 16:34:44 -07:00
Gemfile Use rails/rack-mount 2009-10-22 20:13:46 -07:00
Rakefile Add rake gemspec and gemspecs to the repo 2009-08-31 17:20:44 -07:00
pushgems.rb No more svn version numbers to rely on, use timestamps instead 2008-05-11 18:21:47 -05:00
release.rb Use copy instead of export for release 2008-09-05 14:22:56 +02:00