Commit Graph

934 Commits

Author SHA1 Message Date
Xavier Noria
8f58d6e507 load active_support/core_ext/object/blank in active_support/rails 2012-08-02 21:59:22 +02:00
Xavier Noria
1a7b2e8fad defines a private require-hub active_support/rails
This is a private place to put those AS features that are used
by every component. Nowadays we cherry-pick individual files
wherever they are used, but that it is not worth the effort
for stuff that is going to be loaded for sure sooner or later,
like blank?, autoload, concern, etc.
2012-08-02 21:59:22 +02:00
Carlos Antonio da Silva
9f5d2b1202 Fix failing AM test due to missing template 2012-07-06 23:12:48 -03:00
Carlos Antonio da Silva
3009c63da6 Improve docs, changelog and release notes for Action Mailer default_options=
[ci skip]
2012-07-06 22:51:32 -03:00
Carlos Antonio da Silva
842f27dd82 Merge pull request #6950 from paneq/default_from2
Introduce config.action_mailer.default_options=

Allows to easily set :from, :replay_to, etc. options in
config/application.rb using simple syntax:

    config.action_mailer.default_options = { from: "no-replay@example.org" }

Closes #6747
2012-07-06 18:36:27 -07:00
Mark Dodwell
9208879d6e Use ArgumentError vs. RuntimeError, which is more precise. 2012-07-04 22:34:31 -07:00
Robert Pankowecki
edaa2c4817 Introduce config.action_mailer.default_from=
Allows to easily set :from, :replay_to, etc. options in
config/application.rb using simple syntax:

  config.action_mailer.default_options = {from:"no-replay@example.org"}

This was not possible using #default method because

  config.action_mailer.default(from: "no-replay@example.org")

is interpreated as reader method and just returns nil.
It would not call ActionMailer::Base.default method. The only
way of calling this method from config/application.rb was to use
the direct syntax which looks ugly in my opinion:

  config.assets.enabled = false
  config.assets.version = '1.0'
  config.encoding = "utf-8"
  config.action_mailer.default_url_options= {
    host:"example.org",
    protocol:"https"
  }
  ActionMailer::Base.default(from: "no-replay@example.org")
2012-07-03 22:14:08 +00:00
Francesco Rodriguez
e2abd8da2d fix ActionMailer::Async docs and update to follow coding conventions 2012-06-28 15:09:32 -05:00
Brian Cardarella
35717a9370 Some final syntax fixes 2012-06-24 17:17:06 -04:00
Brian Cardarella
a11fcd9a76 Better documentation for ActionMailer.async 2012-06-24 15:22:55 -04:00
Brian Cardarella
aee4eec47a Better documentation for ActionMailer.async 2012-06-24 04:28:52 -04:00
Brian Cardarella
33334d0ea8 Forcing the message sending is no longer necessary 2012-06-24 04:21:02 -04:00
Brian Cardarella
812d1e88c5 Support for custom queues on the mailer
Credit goes to *Aaron Patterson* (tenderlove)
2012-06-23 23:42:03 -04:00
Brian Cardarella
dee0b23af2 Removed unecessary splatting 2012-06-23 16:38:44 -04:00
Brian Cardarella
5337149caf Use Delegator for a cleaner QueuedMessage class
Credit goes to *Nicolás Sanguinetti* (foca) for this suggestion
2012-06-23 16:06:04 -04:00
Brian Cardarella
d1d6c364d0 Updated Changelogs 2012-06-23 15:21:33 -04:00
Brian Cardarella
dc9f6fc046 Force message delivery despite async 2012-06-23 15:12:31 -04:00
Brian Cardarella
0cb154be24 AsyncMailer documention 2012-06-23 14:45:16 -04:00
Brian Cardarella
dc7fd821dc Asynchronous ActionMailer
Any ActionMailer class can be set to render and delier messages using
the new Rails Queue.

Some of this work was borrowed (with permission) from Nick Plante's
(zapnap) reqsue_mailer gem.
2012-06-23 14:36:09 -04:00
Vijay Dev
35ee8fa3d8 Merge branch 'master' of github.com:lifo/docrails 2012-06-22 22:15:27 +05:30
Damien Mathieu
45b1045d16 raise an error if no implicit mailer template could be found 2012-06-20 22:06:31 +02:00
Damien Mathieu
a4726d3805 just specify what's to be done, not what's not to be. 2012-06-20 18:23:57 +03:00
Ben Oakes
d0f088e7f5 Fix delivery_method usage 2012-06-20 12:09:53 -03:00
Rafael Mendonça França
3449b757da Sync CHANGLOG with the 3-2-stable branch 2012-06-01 11:41:30 -03:00
Matt Griffin
6c7b250ac0 Add license field to gemspecs, by Matt Griffin 2012-05-23 09:22:25 -07:00
Sergey Nartimov
c17d200e3f mailer can be anonymous
closes #5970
2012-05-13 14:21:00 +03:00
Santiago Pastorino
36dd1857dc Remove useless load path modifications 2012-05-11 19:00:35 -03:00
Marcelo Silveira
5f2f9b57c4 No need to force conversion to Symbol since case ensures it's already
one.
2012-05-03 09:11:31 -03:00
Marcelo Silveira
3d02195174 No need to work around 1.8 warnings anymore. 2012-05-03 09:10:33 -03:00
Roman V. Babenko
84feca4aaa Rakefile executable attributes and shebang lines has been removed 2012-05-02 13:38:13 +03:00
Alexey Vakhov
ea6bccea1b Update AM example 2012-04-28 08:58:15 +04:00
Mark Rushakoff
ff44c3352d Fix it's -> its 2012-04-27 00:25:22 -07:00
Mark Rushakof
8cc4159018 Use <tt>Foo::Bar</tt> instead of +Foo::Bar+
The latter doesn't render as code in HTML output.

Regex used in Rubymine to locate the latter form:

    (\+)(:*\w+:(?::|\w)+)(\+)
2012-04-27 00:00:30 -07:00
Jose and Yehuda
a837b30f84 Clean up some straggling build failures 2012-04-24 23:55:39 -05:00
Michael de Silva
363888109f Update Rails 3.2.3 release date in changelogs as March 30, 2012
The release date details have been taken from
http://weblog.rubyonrails.org/2012/3/30/ann-rails-3-2-3-has-been-released/
2012-04-16 13:20:53 +03:00
Jurriaan Pruis
2d8396fc9f Updated/changed useless tr/gsubs 2012-04-03 15:16:09 +02:00
Charles Brian Quinn
c291195a6d Updates ActionMailer Base summary and fixes space in code example. 2012-03-19 20:59:31 -04:00
Mikel Lindsaar
24d244c1bc Increase minimum version of mail.
Second security vulnerability found in mail file delivery method
  patched in version 2.4.4.
2012-03-19 14:43:41 +11:00
Rafael Mendonça França
1ced5ca67b Remove key_value helper now that master is 1.9 only and we always use
the 1.9 hash syntax in the generators.
2012-03-13 23:10:32 -03:00
Justin S. Leitgeb
4f28c4fc9a Add ability to define callbacks in ActionMailer using AbstractController::Callbacks.
Prior to this commit, there isn't a good way of adding things like
default inline attachments to an email.  This Stack Overflow thread
shows people using hooks like the 'default' method in ActionMailer::Base
to call a Proc for message configuration:

http://stackoverflow.com/questions/5113121/rails-use-same-attachment-for-all-emails-using-layout

This has the unintended side effect of setting a message header, so it's not a good solution.

This pull request adds support for message modifications by including AbstractController:Callbacks
in ActionMailer::Base. It includes tests and documentation for the functionality
provided by including this module.
2012-03-11 14:05:31 -05:00
Santiago Pastorino
147c20b629 Fix broken tests 2012-03-10 19:15:29 -02:00
Justin S. Leitgeb
da1a9203b4 Fix actionmailer tests broken by #4751a69 2012-03-10 15:48:55 -05:00
Rafael Mendonça França
d804790634 Fix my name in the CHANGELOG to follow the convention
Also add missing entries and use the formating convention
2012-03-09 00:54:21 -03:00
Vijay Dev
8a714c4d80 fix incorrect changelog headings [ci skip].
Last commit message should not have said 'Rails 4' either
2012-03-09 02:30:49 +05:30
Vijay Dev
db6542178c changelog updates for Rails 4 [ci skip] 2012-03-09 02:22:17 +05:30
Mikel Lindsaar
98b0d3effa Increasing minimum version of mail due to security vulnerability found in Mail 2.4.1 for sendmail or exim 2012-03-06 19:59:56 +11:00
Paco Guzman
152a393d4f Update changelogs with rails 3.0-stable branch info 2012-02-25 13:50:08 +01:00
Santiago Pastorino
157ea76306 format lookup for partials is derived from the format in which the template is being rendered
Closes #5025 part 2
2012-02-22 11:12:03 -02:00
Vijay Dev
2cb86cdb8a Merge branch 'master' of github.com:lifo/docrails 2012-02-18 22:02:34 +05:30
Alexey Vakhov
7f33a44ecd Fix AM format_paragraph helper method if a first word is long 2012-02-15 12:09:00 +04:00