José Valim
c03c40b481
Expose a _render_partial hook as thhe _render_template one and make use of it.
2009-12-31 18:40:20 -08:00
José Valim
38fa0d14a8
controller_path is required by ActionView, so move it up to AbstractController and refactor AbstractController::Layouts.
2009-12-31 18:40:20 -08:00
Jeremy Kemper
6ce562c9ff
Merge commit 'mikel/master'
2009-12-31 17:15:06 -08:00
Carl Lerche
ae7ada1fde
Some railties cleanup:
...
* Rename <framework>/rails.rb -> <framework>/railtie.rb
* Rails::Plugin -> Rails::Railtie
* Rails::Plugin::Vendored -> Rails::Plugin
2009-12-31 13:12:52 -08:00
Carl Lerche
e749424dfa
Rename rails.rb -> rails/all.rb and rails/core.rb -> rails.rb
2009-12-31 13:12:52 -08:00
Mikel Lindsaar
2f1aaebe77
removing spurious line
2009-12-31 19:46:22 +11:00
Mikel Lindsaar
a2880827b4
Adding :transfer_encoding -> :content_transfer_encoding as part of TmailCompat
2009-12-31 19:37:37 +11:00
Mikel Lindsaar
345e622a20
Adding TMailCompat layer for :set_content_type and friends
2009-12-30 16:12:51 +11:00
Mikel Lindsaar
b354496bda
Adding default 8bit encoding if the body has non usascii in it
2009-12-28 21:41:16 +11:00
José Valim
616ebb8f6a
Remove unused code paths and require mail only when it's needed.
2009-12-28 11:21:36 +01:00
Mikel Lindsaar
c039bcdb1c
Moved sort_parts into Mail, updated mail requirement to 1.4.2
2009-12-28 12:25:14 +11:00
José Valim
971f4ff829
DRY ActionMailer code.
2009-12-27 12:36:00 +01:00
José Valim
47e5caa96b
Merge Mail with latest Rails and move mail gem to Gemfile.
2009-12-27 12:09:20 +01:00
Mikel Lindsaar
fd58a2d1da
Updating action_mailer to need mail 1.4.1
2009-12-27 21:42:33 +11:00
Mikel Lindsaar
331d375cc3
Changing body to use :to_s instead of :decoded... better use case
2009-12-27 20:56:16 +11:00
Mikel Lindsaar
4e1fa4912d
Updating actionmailer to call :to_s on all field values instead of decoded
2009-12-27 18:38:30 +11:00
José Valim
88ba056043
Refactor multiple parts logic and move Utils to PartContainer.
2009-12-25 21:47:47 +01:00
José Valim
ee70d1b6ad
adv_attr_accessors in ActionMailer are not sent to the views, use the mailer object if you need to access the subject, recipients, from, etc.
2009-12-25 21:35:40 +01:00
Carlhuda
d2bd71a145
Finish moving config.frameworks-dependent code to the framework plugin
2009-12-23 17:23:29 -08:00
Joshua Peek
2e4e8d156c
All AM modules are safe to defer
2009-12-22 17:33:00 -06:00
Joshua Peek
ace20bd25e
Flip deferrable autoload convention
2009-12-22 17:27:37 -06:00
José Valim
4964d3b02c
Make ActionMailer::Base inherit from AbstractController::Base
...
Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local >
2009-12-22 11:29:06 -08:00
Carlhuda
be225adafb
Fix ActionMailer. The fact that ActionMailer::Base does not inherit from AbstractController::Base is either a bug or we need to re-evaluate the requirements of the mixins.
2009-12-21 16:49:21 -08:00
David Heinemeier Hansson
83f4d86a93
Rename the RenderingController module to just plain Rendering
2009-12-20 17:15:31 -08:00
Mikel Lindsaar
8950346f8a
Updating requirement for mail to 1.3.4
2009-12-17 13:17:35 +11:00
Mikel Lindsaar
f176c94663
Updating requirement for mail to 1.3.3
2009-12-17 12:35:07 +11:00
Mikel Lindsaar
63b124b043
Merged in latest changes from rails/master
2009-12-17 12:23:08 +11:00
Mikel Lindsaar
418639b4cf
Fixes for working with 1.9.1-head
2009-12-17 12:00:32 +11:00
Mikel Lindsaar
186cd7bc53
Merge branch 'rails'
...
Conflicts:
actionmailer/lib/action_mailer.rb
actionmailer/lib/action_mailer/delivery_method/smtp.rb
2009-12-17 11:24:02 +11:00
Joshua Peek
7ee5843c3c
Fully expand relative rails framework paths and make sure we aren't
...
adding any to the load path more than once.
2009-12-16 11:56:51 -06:00
Yehuda Katz
96e0638ce2
Should fix a few Sam Ruby fails.
2009-12-03 09:06:01 -08:00
Carlhuda
c1304098cc
Reorganize autoloads:
...
* A new module (ActiveSupport::Autoload) is provide that extends
autoloading with new behavior.
* All autoloads in modules that have extended ActiveSupport::Autoload
will be eagerly required in threadsafe environments
* Autoloads can optionally leave off the path if the path is the same
as full_constant_name.underscore
* It is possible to specify that a group of autoloads live under an
additional path. For instance, all of ActionDispatch's middlewares
are ActionDispatch::MiddlewareName, but they live under
"action_dispatch/middlewares/middleware_name"
* It is possible to specify that a group of autoloads are all found
at the same path. For instance, a number of exceptions might all
be declared there.
* One consequence of this is that testing-related constants are not
autoloaded. To get the testing helpers for a given component,
require "component_name/test_case". For instance, "action_controller/test_case".
* test_help.rb, which is automatically required by a Rails application's
test helper, requires the test_case.rb for all active components, so
this change will not be disruptive in existing or new applications.
2009-12-02 20:01:08 -08:00
Joshua Peek
5d9af09563
Silence known internal AM deprecation calls
2009-12-01 23:01:21 -06:00
Michael Koziarski
7e0aa35c20
avoid generating invalid SMTP commands in ruby pre 1.9
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
Conflicts:
actionmailer/lib/action_mailer/base.rb
2009-11-28 13:34:05 +13:00
Mikel Lindsaar
5f2395041d
Merge branch 'master' of git://github.com/rails/rails into rails_master
2009-11-24 21:45:14 +11:00
Mikel Lindsaar
3a72923e27
Change require mail version to 1.3.0
2009-11-24 09:38:00 +11:00
Mikel Lindsaar
2e453d930d
Changed deprecation to use ActiveSupport::Deprecation
2009-11-24 09:33:05 +11:00
Mikel Lindsaar
cc391c3022
Deprecating attachment :body => 'string' in favour of attachment :data => 'string'
2009-11-23 20:53:07 +11:00
Mikel Lindsaar
a6eed86c33
Removing utils, and updating requires to match
2009-11-23 20:50:49 +11:00
Mikel Lindsaar
3cb46b40a0
Opps.. need to require it as well as gem mail :)
2009-11-22 23:36:30 +11:00
Mikel Lindsaar
06c5270343
Adding mail as a gem load
2009-11-22 23:34:39 +11:00
Mikel Lindsaar
747d56881a
131 tests, 309 assertions, 0 failures, 0 errors
2009-11-22 23:20:57 +11:00
Mikel Lindsaar
6456a08334
Down to 13 failures, 14 errors
2009-11-20 22:01:40 +11:00
Mikel Lindsaar
a5e6295d72
Down to 30 failures total
2009-11-20 21:19:10 +11:00
Mikel Lindsaar
539d9b355f
More updates... 45 errors left to get it working with Mail gem
2009-11-20 14:10:57 +11:00
Mikel Lindsaar
15d7cac282
Starting again on actionmailer integration with mail
2009-11-12 16:08:50 +11:00
Jeremy Kemper
d887e46c29
Be sure to invoke the super chain! And initialize response body.
2009-11-10 14:14:17 -08:00
José Valim
4a1f438781
Change mailer subjects lookup.
2009-11-09 10:57:53 -08:00
Jeremy Kemper
73a36b599a
Shush
2009-11-05 16:12:02 -08:00
José Valim
976c264724
Extracted localized_cache.rb from ActionController, added it to AbstractController and made ActionMailer use it.
2009-11-01 02:23:49 +01:00