David Chelimsky
849ab92942
Eliminate false positives when passing symbols to assert_template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-03 13:46:12 +02:00
Justin George
731d4392e4
Change event namespace ordering to most-significant first [ #4504 state:resolved]
...
More work still needs to be done on some of these names
(render_template.action_view and render_template!.action_view particularly)
but this allows (for example) /^sql/ to subscribe to all
the various ORMs without further modification
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-05-02 22:45:54 +02:00
rick
8d236ccb84
add HTTP Token Authorization support to complement Basic and Digest Authorization.
2010-04-30 07:46:30 -07:00
Neeraj Singh
d793d30776
ActionCachingTestController rescues from all exceptions. Making sure that all the tests check for valid response. [ #4468 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-29 12:48:34 +02:00
David Chelimsky
176fbfd66f
extract ActionController::TestCase::Behavior
...
- this makes it possible for other test frameworks
to hook into testing facilities provided by Rails
without having to subclass AC::TestCase.
[#4474 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-26 09:52:38 +02:00
David Chelimsky
864bd9c21f
allow unsubscribe by name or subscription [ #4433 state:resolved]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-24 22:06:24 -07:00
José Valim
81fb742488
Always downstream given options in :json, :xml and :js renderers and add tests for it.
2010-04-22 12:12:38 +02:00
José Valim
4163ccec23
Clean up the config object in ActionPack. Create config_accessor which just delegates to the config object, reducing the number of deprecations and add specific tests.
2010-04-22 12:00:13 +02:00
wycats
62916ecbbe
It should be possible to render :json with options
2010-04-20 22:29:00 -07:00
Santiago Pastorino
4309c1fda3
perform_caching is now delegated to config on instance and class level
2010-04-17 23:40:03 -03:00
Carl Lerche
ac015b1d07
Revert "Avoid deprecation warnings and potential TypeErrors [ #4404 state:resolved]"
...
Revert "protected instance variables added to the deprecated config accessor
This reverts commit 4bce5ba600 and 0ee2d3c89a .
2010-04-16 15:39:00 -07:00
Santiago Pastorino
9c08ccd889
page_cache_extension is delegating to config so no need to deprecate
2010-04-16 11:03:16 -03:00
Santiago Pastorino and Carl Lerche
0ea434e2f4
Make perform_caching work again, with the tests passing and backward compatible
2010-04-15 18:25:08 -03:00
Santiago Pastorino and Carl Lerche
005c2bac46
Revert "logger added to the deprecated config accessor" we need a major refactor to get this working
...
This reverts commit 68f4e046a7 .
2010-04-15 16:58:31 -03:00
Santiago Pastorino
68f4e046a7
logger added to the deprecated config accessor
2010-04-14 22:49:53 -07:00
Santiago Pastorino
0ee2d3c89a
protected instance variables added to the deprecated config accessor
2010-04-14 22:49:53 -07:00
Santiago Pastorino
ab808a9d71
asset and helper path added to the deprecated config accessor
2010-04-14 22:49:53 -07:00
Santiago Pastorino
eb8c7b4639
page_cache added to the deprecated config accessor
2010-04-14 22:49:53 -07:00
Santiago Pastorino
a618ad358a
Make use of config.perform_caching
2010-04-14 22:35:13 -07:00
Santiago Pastorino
399d5338ac
Fix missing dependency on Hash#to_query
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-14 17:14:50 -07:00
Xavier Noria
9a4fdff0af
Merge commit 'docrails/master'
2010-04-14 01:00:03 -07:00
Santiago Pastorino
0ab2ba336f
config.perform_caching added to the deprecated config accessor [ #4383 state:committed]
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2010-04-13 16:20:49 -07:00
Anil Wadghule
84e46437fa
Replace 'RAILS_ROOT' to 'Rails.root' and 'RAILS_ENV' to 'Rails.env' in significant places.
2010-04-12 22:53:49 +05:30
José Valim
ece157e950
Move verification to a plugin as well: http://github.com/rails/verification.git
2010-04-10 11:47:20 +02:00
Santiago Pastorino
13e00ce606
fix stack trace lines on class_eval
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-04-09 21:28:49 +02:00
Michael Koziarski
82514c2897
Add accessors for request and response so tests don't have to mess with internal ivars
2010-04-09 11:30:39 +12:00
José Valim
4e92134dfa
Fix a bug in ActionDispatch::Static where Rails cannot find assets if started in another directory which is not the RAILS_ROOT.
2010-04-08 12:52:37 +02:00
José Valim
149d13e1f0
Move the error raising to api_behavior.
2010-04-07 16:18:13 +02:00
Xavier Noria
4c4fd1a60f
Merge commit 'rails/master'
2010-04-06 15:38:05 -07:00
José Valim
6690d66292
Rename config.cookie_secret to config.secret_token and pass it as configuration in request.env. This is another step forward removing global configuration.
2010-04-05 12:00:24 +02:00
Xavier Noria
9ed919eb0b
revises some <%= in rdoc
2010-04-05 02:51:26 -07:00
wycats
5c8b4c6e23
Move filter_parameter_logger to deprecated.rb
2010-04-04 21:06:39 -07:00
wycats
79d194e920
Make it easier to subclass AC::Metal with most, but not all, of the modules in AC::Base
2010-04-04 21:06:26 -07:00
wycats
b96486d457
Whitespace
2010-04-04 20:09:03 -07:00
Xavier Noria
723e91e9fd
Merge commit 'docrails/master'
2010-04-04 13:36:15 -07:00
Jeremy Kemper
e3959970e1
Fix signed cookies by explicitly passing config to the cookie jar
2010-04-04 11:10:00 -07:00
Andrew White
48b2451142
Update various documentation examples to use new routing DSL
2010-04-04 17:34:13 +01:00
wycats
ab8bf9e152
* Change the object used in routing constraints to be an instance of
...
ActionDispatch::Request rather than Rack::Request.
* Changed ActionDispatch::Request#method to return a String, to be
compatible with the Rack::Request superclass.
* Changed ActionDispatch::Request#method to return the original
method in the case of methodoverride and #request_method not to,
to be compatible with Rack::Request
2010-04-03 20:24:30 -07:00
José Valim
62151dd272
Deprecate cookie_verifier_secret in favor of config.cookie_secret allowing signed cookies to work again.
2010-03-31 12:59:41 +02:00
Joshua Peek
cdf8c35ffd
Consistent routing language
2010-03-30 14:05:42 -05:00
wycats
4aded43b73
Replace the placeholder base_hook API with on_load. To specify some code that
...
should run during framework load do:
ActiveSupport.on_load(:action_controller) do
# Code run in the context of AC::Base
end
2010-03-29 17:08:50 -07:00
José Valim
56bed512f9
Fix dom_id for ActiveRecord [ #4296 state:resolved]
2010-03-30 01:32:26 +02:00
Xavier Noria
76f024ac8d
adds missing requires for Object#blank? and Object#present?
2010-03-28 14:15:02 +02:00
José Valim
a09e99259c
Ensure details are frozen after @details_keys lookup. The implementation waits to freeze until the last required moment, to avoid duping hashes.
2010-03-27 20:52:11 +01:00
wycats
b20a105ed0
Fixes typo (ht: Claudio Poli) [ #4107 state:closed]
2010-03-26 20:07:00 -07:00
José Valim
395d6648ce
Move application configuration to the application configuration object, remove railtie_name and engine_name and allow to set the configuration object.
2010-03-26 18:47:55 +01:00
wycats
f868c2afa9
response_body is an Array in 1.9, so an Array was being pushed onto the cache
2010-03-19 18:56:06 -07:00
Carlhuda
7f53dca1a1
Fix protect_against_forgery
2010-03-19 11:11:02 -07:00
José Valim
f28d856cec
Improve performance of the rendering stack by freezing formats as a sign that they shouldn't be further modified.
2010-03-19 17:20:20 +01:00
Carlhuda
1dacc19702
Return a valid Rack response from bare ActionController::Metal
2010-03-18 17:32:53 -07:00