Jeremy Kemper
b540eca588
Consolidate Object#to_param and #to_query core extensions
2009-11-02 17:50:12 -08:00
Jeremy Kemper
8935854375
Ruby 1.9.2: rational.rb is deprecated
2009-11-02 17:50:12 -08:00
Jeremy Kemper
a2de13e1e0
Ruby 1.9.2: URI.escape is obsolete
2009-11-02 17:50:12 -08:00
Jeremy Kemper
36121d29a5
Ruby 1.9 doesn't recognize EM SPACE as whitespace, breaking String#strip
2009-11-02 17:50:12 -08:00
Jeremy Kemper
13004c37e6
Give useful test:isolated failures
2009-11-02 17:50:11 -08:00
Yehuda Katz
14370e1aab
CI breakage
...
This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1.
2009-11-02 17:12:01 -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
José Valim
a107103e85
Allow :instance_reader to be given to superclass_delegating_accessor as well.
2009-11-01 02:23:49 +01:00
José Valim
2aafdc8396
Use I18n on ActionMailer subjects by default.
2009-11-01 02:23:49 +01:00
José Valim
81c416b72e
More refactoring on ActionMailer::Base.
2009-11-01 02:23:49 +01:00
José Valim
e9667ad1f0
Make tests run without deprecation warning (just one left).
2009-11-01 02:23:48 +01:00
José Valim
418c3f801c
Another refactoring on AM. body is deprecated, use render instead.
2009-11-01 02:23:48 +01:00
José Valim
0396004861
Add some basic render_test to AbstractController.
2009-11-01 02:23:48 +01:00
José Valim
0cf16ddb88
Improve AbstractController layouts coverage.
2009-11-01 02:23:48 +01:00
José Valim
2d514e5352
Move some of helper tests to AbstractController.
2009-11-01 02:23:48 +01:00
José Valim
43d5504f0a
Move all render and layout pieces required in ActionMailer from ActionController to AbstractController.
2009-11-01 02:23:48 +01:00
José Valim
684c2dc208
Remove ActionMailer helpers and rely on AbstractController one.
2009-11-01 02:23:48 +01:00
José Valim
a9751a7034
Refactor ActionMailer layout and remove legacy one.
2009-11-01 02:23:47 +01:00
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
Tim Carey-Smith
3f56038612
Remove the random line at the beginning of every new log file
2009-10-29 08:05:41 +01:00
Yehuda Katz
51c24ae3e3
Caching refactoring
2009-10-29 00:44:12 -04:00
José Valim
a288b74f1c
Generators should use Rails.root instead of Dir.pwd [ #3408 status:resolved]
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-28 16:54:38 -04:00
Yehuda Katz
8dcf91ca11
First pass at cleaning up action caching
2009-10-28 16:54:00 -04:00
José Valim
427a7385eb
Make polymorphic_url work with symbols again and refactor it [ #1384 status:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-10-28 14:13:48 -05:00
Yehuda Katz
f51ac9e780
Array.wrap(struct) needs to return the wrapped struct
2009-10-28 06:51:25 -07:00
Yehuda Katz
c9487ed6af
Change Event#thread_id to #transaction_id. Defaults to one "transaction" per thread but you can explicitly declare the start of a new one. This makes it possible for each request to have it own id.
2009-10-28 01:58:33 -07:00
Yehuda Katz
03d3824d96
Make it possible to have IDs per request
2009-10-28 01:50:59 -07:00
Yehuda Katz
654b33afc5
New semantics eliminate the need for __send__
2009-10-28 01:43:46 -07:00
Yehuda Katz
a0fc92f455
This is all that's needed in 1.8.7+
2009-10-28 01:43:33 -07:00
Yehuda Katz
c5e73b8976
Reduce TextTemplate cost for simple cases
2009-10-28 00:13:08 -07:00
Yehuda Katz
0b2dd7afd9
Reorganize CSRF a bit
2009-10-28 00:12:35 -07:00
Yehuda Katz
cbcb947b00
AS::Notifications.subscribe blocks are now yielded the arguments to pass to AS::Notifications::Event.new
2009-10-27 21:04:53 -07:00
Phil Ross
9b67b7ba2f
Edinburgh TimeZone references "Europe/London" instead of "Europe/Dublin" [ #3310 state:resolved]
2009-10-27 21:13:13 -05:00
Geoff Buesing
057f0d3c16
Bundle Tzinfo 0.3.15
2009-10-27 21:13:13 -05:00
Geoff Buesing
37c9ec3add
Tzinfo bundling task: unpack tzinfo with lib directory preserved
2009-10-27 21:13:12 -05:00
Yehuda Katz
86596975be
Tests pass again
2009-10-27 19:05:47 -07:00
Joshua Peek
07da304ff8
Some more generation tests
2009-10-27 21:02:21 -05:00
Joshua Peek
43e0bc1c9f
Extract routing controller stub helper into abstract unit
2009-10-27 21:02:20 -05:00
Joshua Peek
e296ea056e
Enable named route tests
2009-10-27 21:02:20 -05:00
Joshua Peek
759f2ccc4c
Start migrating AC routing tests into dispatch folder
2009-10-27 21:02:20 -05:00
Jeremy Kemper
c2a17217d0
Fix test failures due to requiring rails without AS in load path
2009-10-27 18:35:41 -07:00
Yehuda Katz + Carl Lerche
df95f16570
Update initializable
2009-10-27 17:01:33 -07:00
Yehuda Katz + Carl Lerche
da62a7c536
Duplicate AS code no longer needed
2009-10-27 17:01:33 -07:00
José Valim
c28a45ad8b
Fix rake dev and update vendored Thor.
...
Signed-off-by: Yehuda Katz <wycats@gmail.com>
2009-10-27 16:46:19 -07:00
Jeremy Kemper
b30294b54a
Fix broken tests
2009-10-27 09:34:17 -07:00
Yehuda Katz
c3fa20883e
#include should be #extend
2009-10-27 09:21:01 -07:00
Yehuda Katz
b3a198041b
Some optimizations on AS::Notifications. This does not change the public-facing API.
2009-10-27 09:15:41 -07:00
Yehuda Katz
4653719aa6
Clean up flash a bit
2009-10-27 09:15:41 -07:00
Jeremy Kemper
58555d0c8b
Remove old per-component bundled environments first
2009-10-27 02:03:25 -07:00
Jeremy Kemper
b3012bbd16
Tweak CI for toplevel gem bundle
2009-10-27 01:55:27 -07:00