aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
Commit message (Collapse)AuthorAgeFilesLines
* Reorganized initializers a bit to enable better hooks for common cases ↵wycats2010-05-151-13/+0
| | | | | | | | | | | | | | | without the need for Railtie. Specifically, the following hooks were added: * before_configuration: this hook is run immediately after the Application class comes into existence, but before the user has added any configuration. This is the appropriate place to set configuration for your plugin * before_initialize: This is run after all of the user's configuration has completed, but before any initializers have begun (in other words, it runs right after config/environments/{development,production,test}.rb) * after_initialize: This is run after all of the initializers have run. It is an appropriate place for forking in a preforking setup Each of these hooks may be used via ActiveSupport.on_load(name) { }. In all these cases, the context inside the block will be the Application object. This means that for simple cases, you can use these hooks without needing to create a Railtie.
* Change event namespace ordering to most-significant first [#4504 state:resolved]Justin George2010-05-021-1/+1
| | | | | | | | | 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>
* ActiveRecord middlewares should be inserted before AD::Cascade [#4493 ↵José Valim2010-04-291-3/+3
| | | | state:resolved].
* The rake task :environment now loads config/environment.rb instead of ↵José Valim2010-04-293-2/+18
| | | | initializing the application on its own. This fixes [#4492 state:resolved] and also avoids the application being initialized twice in some rake tasks.
* Fix failing test.José Valim2010-04-281-0/+33
|
* Ensure application rake tasks and generators are loaded after the ones ↵José Valim2010-04-261-0/+23
| | | | specified in railties/engines/rails. [#4471 state:resolved]
* Refactor tests by moving all middleware tests to the same place.José Valim2010-04-263-120/+98
|
* test refactorSantiago Pastorino2010-04-191-2/+8
|
* Added tests for config.action_controller.perform_cachingChetan Sarva2010-04-131-0/+36
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-0/+9
| | | | started in another directory which is not the RAILS_ROOT.
* Alleviate the pain in working with utf8 templates by setting a default encoding.José Valim2010-04-071-0/+12
|
* Remove app/views from the load paths [#4226 state:resolved]José Valim2010-04-051-0/+1
|
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-053-2/+18
| | | | configuration in request.env. This is another step forward removing global configuration.
* Add a test which ensures action_dispatch.show_exceptions is properly disabled.José Valim2010-04-021-0/+6
|
* Make X-Sendfile default to "" so it works correctly in dev mode.wycats2010-03-261-43/+36
| | | | | Provide a default in production.rb that can be modified, so that people who care about sendfile performance in production mode can get better performance easily.
* Remove invalid builtin tests since we aren't adding that dir to theJoshua Peek2010-03-201-18/+0
| | | | load path anymore
* Fix protect_against_forgeryCarlhuda2010-03-191-0/+27
|
* Add mailers to paths in case someone wants to access it directly and ensures ↵José Valim2010-03-061-3/+4
| | | | deep nesting works in controllers.
* Change generated code to replace faulty commentCarlhuda2010-03-041-1/+1
|
* Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-044-6/+10
| | | | ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings.
* Fix Sam Ruby's tests and deprecation warningsCarlhuda2010-03-045-8/+8
|
* Fix all the broken tests due to the AC configuration refactorCarl Lerche2010-03-032-2/+3
|
* Move remote_ip to a middleware:Carlhuda2010-03-031-0/+53
| | | | | * ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check * ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies
* Fix a test that assumes that defined?(ActiveRecord) == ↵Carlhuda2010-03-021-1/+1
| | | | defined?(ActiveRecord::Base)
* nested controllers need to be explicitly declared with the new mapperJoshua Peek2010-02-281-1/+2
|
* reload! on console now works as expected. [#3822 status:resolved]José Valim2010-02-261-3/+29
|
* Final pass at removing the router from a global constantCarlhuda2010-02-251-0/+42
|
* Woops, forgot to actually add active_support/core_ext/file/path.rbCarlhuda2010-02-231-0/+1
|
* Revert "Fix test load paths for those not using bundler"Carlhuda2010-02-231-1/+1
| | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path.
* Makes send_file work again by deferring to Rack::Sendfile. Carlhuda2010-02-231-0/+55
| | | | | | | | | | * Add the Rack::Sendfile middleware * Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile"). * Add Railties tests to confirm that these work * Remove the :stream, :buffer_size, and :x_senfile default options to send_file * Change the log subscriber to always say "Sent file" * Add deprecation warnings for options that are now no-ops Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
* Add a test for default_url_options in AM.José Valim2010-02-211-0/+11
|
* Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵José Valim2010-02-191-3/+15
| | | | after_initializer is executed after to_prepare callbacks.
* Ensure config.after_initializer is executed before building the middleware ↵José Valim2010-02-181-0/+14
| | | | stack.
* Merge master.José Valim2010-02-171-1/+1
|\
| * Fix test load paths for those not using bundlerJoshua Peek2010-02-151-1/+1
| |
* | Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-1/+1
|/
* Check if Test::Unit is defined before adding backtrace filter.José Valim2010-02-071-0/+17
|
* Add config.generators.templates to provide alternative paths for template ↵José Valim2010-02-061-11/+4
| | | | lookup.
* Deprecate AC configuration values which were moved to Rack.José Valim2010-02-012-2/+2
|
* Add config.generators.fallbacks.José Valim2010-02-011-1/+12
|
* Improve railtie deprecation messages.José Valim2010-01-301-0/+7
|
* Move the ActiveRecord generator settings into the RailtieCarl Lerche2010-01-281-1/+1
|
* Add more tests to some key points in Railties.José Valim2010-01-283-3/+30
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Add config.to_prepare back and add tests for it.José Valim2010-01-281-0/+23
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>
* Test::Unit Railtie Carlhuda2010-01-281-2/+8
|
* Move Rails::Rack::Metal to Rails::Application::Metal and just add cascade if ↵José Valim2010-01-261-1/+6
| | | | any metal was declared.
* Refactor railties test, break huge files in smaller chunks and move ↵José Valim2010-01-2613-271/+441
| | | | initializers to application folder.
* Ensure calling a method in Rails::Application does not instantiate a void ↵José Valim2010-01-261-0/+7
| | | | application.
* Ensure environment config has higher priority than application ones.José Valim2010-01-241-1/+12
|
* Move console stuff to its own directory.José Valim2010-01-231-2/+2
|