José Valim
6545a68264
Fix failing tests after merge.
2010-01-24 15:08:06 +01:00
José Valim
84ebfa4550
Ensure metals and initializers in plugins are loaded.
2010-01-24 14:48:00 +01:00
José Valim
e548f96b1d
Rename plugin_name to railtie_name and engine_name.
2010-01-24 12:23:21 +01:00
José Valim
37e4deb260
Ensure helpers work from configured path.
2010-01-24 12:04:37 +01:00
José Valim
e0bdc4f446
Ensure namespaced controllers in engines work.
2010-01-24 11:06:06 +01:00
José Valim
2fde9d774b
Solve some pendencies.
2010-01-24 09:32:54 +01:00
José Valim
f915f9e339
Merge branch 'master' into app
...
Conflicts:
railties/lib/rails/application.rb
2010-01-23 22:53:26 +01:00
José Valim
80130d1201
Extract routes reloading responsibilities from application and load them just upon a request.
2010-01-23 16:06:33 +01:00
José Valim
98240c49b0
Get rid of initializers global and create i18n railtie.
2010-01-23 01:29:29 +01:00
José Valim
c8cc8a9872
Moved more configuration away from bootstrap.
2010-01-22 20:44:38 +01:00
José Valim
d618b7e3dc
Ensure strings given to render with slash are rendered relative to the configured _prefix.
2010-01-22 17:58:03 +01:00
Xavier Noria
5c53ffe1db
Add missing require for Object#try [ #3771 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2010-01-22 22:20:00 +05:30
Joshua Peek
1a750da130
Make @controller an internal ivar in the view
2010-01-22 10:19:01 -06:00
José Valim
02c5137ead
Add view paths to Engine setup.
2010-01-22 01:10:31 +01:00
José Valim
7fcf8590e7
Massive cleanup in Railties and load stack.
2010-01-21 23:14:20 +01:00
José Valim
fc4f237864
Make filter parameters based on request, so they can be modified for anything in the middleware stack.
2010-01-21 16:52:49 +01:00
José Valim
378464a2e4
Default to sync instrumentation.
2010-01-21 13:09:12 +01:00
José Valim
dcb8b64975
Add shortcut test to abstract/render_test.rb
2010-01-21 12:12:10 +01:00
José Valim
31fddf2ace
Tidy up new filter_parameters implementation.
2010-01-21 11:57:24 +01:00
Prem Sichanugrist
b1bc3b3cd3
Add deprecation warning for calling filter_parameter_logging ActionController::Base, and allow it to be configured in config.filter_parameters
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-21 11:41:31 +01:00
Prem Sichanugrist
bd4f21fbac
Move filter_parameter_logging logic out of the controller and create ActionDispatch::ParametersFilter to handle parameter filteration instead. This will make filteration not depending on controller anymore.
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-21 10:08:26 +01:00
Sam Ruby
c8cba7db76
Add AD::Route#to_s
...
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2010-01-20 10:56:27 -06:00
Joshua Peek
93956a18e4
Only send filtered_env for notifications
2010-01-20 10:07:23 -06:00
Joshua Peek
87bcf1aa15
Request#filter_parameters and filter_env
2010-01-20 09:55:58 -06:00
Joshua Peek
909443eab6
Expose last controller in rack env["action_controller.instance"]
2010-01-20 09:00:23 -06:00
José Valim
6e26be6960
Move ActionController::Translation to AbstractController::Translation.
2010-01-20 15:02:13 +01:00
José Valim
8e2fd54b19
Bring normalize behavior to AbstractController::Rendering
2010-01-20 15:02:13 +01:00
Yehuda Katz
1a50d2e66a
Stop overriding LoadError.new to return a MissingSourceError (and sometimes nil!)
2010-01-19 22:35:26 -08:00
Joshua Peek
5ebfa62427
Revert streaming params parser support.
...
AS Xml and Json parsers expect the request body to be a real IO object
supporting methods like getc or ungetc which are not specified by the
Rack spec and aren't supported by Passenger or the Rewindable input
wrapper.
We can restore functionality if the AS parsers are rewritten to support
Racks subset of supported IO methods.
2010-01-19 22:56:38 -06:00
Joshua Peek
a5d06d05fb
Cleanup middleware introspection output
2010-01-19 22:56:37 -06:00
Joshua Peek
88ffba2329
Disable ShowExceptions during integration tests
2010-01-19 09:06:21 -06:00
José Valim
a8e25a518a
Move parameters to the top on logging.
2010-01-19 15:35:24 +01:00
José Valim
5a81dbf489
Fix failing test.
2010-01-19 15:35:23 +01:00
José Valim
4e2852a487
Do not send rack.input or any other rack information to AD listeners.
2010-01-19 15:35:23 +01:00
Joshua Peek
bec5356f25
Define named routes for other non-GET REST actions
2010-01-19 08:23:23 -06:00
Pratik Naik
ed8501ef16
Fix DoubleRenderError error message
2010-01-19 15:23:56 +05:30
Joshua Peek
71d67fc6bd
Prettier hash dump
2010-01-18 21:22:09 -06:00
Joshua Peek
5579de5bab
Show Rack env dump on exception page
2010-01-18 21:12:17 -06:00
Joshua Peek
68b76a38eb
Cleanup deprecation notices.
2010-01-18 09:49:38 -06:00
Damien Mathieu
38c2e4687f
Missing rename from named_scope to scope [ #3735 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-18 09:33:36 +01:00
Joshua Peek
c29bb8857e
Clear out AS callback method pollution in AC::Base.action_methods
2010-01-17 22:06:28 -06:00
Joshua Peek
58fe3295fe
Base#action_methods delegates to Base.action_methods
2010-01-17 21:51:07 -06:00
Joshua Peek
eeba755a11
Accessing nonexistant cookies through the signed jar should not raise an
...
exception
2010-01-17 21:31:06 -06:00
Sam Elliott and Santiago Pastorino
5a6596787b
Module lookup issue on flash_test using ruby 1.9 solved [ #3716 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 16:57:14 +01:00
Prem Sichanugrist
eb67532bc1
Make local_request? to returns true when facing ::1 IPv6 address [ #3257 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-01-17 16:56:54 +01:00
José Valim
44a10a2440
Fix resources_path_names branch which was sending an array as entity. [ #3715 status:resolved]
2010-01-17 16:18:14 +01:00
José Valim
020e656447
Move middleware builder back to Rails::Rack::Metal without losing the new behavior.
2010-01-17 13:23:38 +01:00
José Valim
27d9836ad3
Add ActionDispatch::Railties::Subscriber and finish tidying up the logging.
2010-01-17 12:43:17 +01:00
José Valim
61ada28ed3
Get rid of prepare_each_request, since now it's a middleware initialization parameter.
2010-01-17 11:44:04 +01:00
José Valim
0334f9f6cf
Add ActionDispatch::Notifications middleware.
2010-01-17 11:29:51 +01:00