Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 1 | -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 George | 2010-05-02 | 1 | -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é Valim | 2010-04-29 | 1 | -3/+3 |
| | | | | state:resolved]. | ||||
* | The rake task :environment now loads config/environment.rb instead of ↵ | José Valim | 2010-04-29 | 3 | -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é Valim | 2010-04-28 | 1 | -0/+33 |
| | |||||
* | Ensure application rake tasks and generators are loaded after the ones ↵ | José Valim | 2010-04-26 | 1 | -0/+23 |
| | | | | specified in railties/engines/rails. [#4471 state:resolved] | ||||
* | Refactor tests by moving all middleware tests to the same place. | José Valim | 2010-04-26 | 3 | -120/+98 |
| | |||||
* | test refactor | Santiago Pastorino | 2010-04-19 | 1 | -2/+8 |
| | |||||
* | Added tests for config.action_controller.perform_caching | Chetan Sarva | 2010-04-13 | 1 | -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é Valim | 2010-04-08 | 1 | -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é Valim | 2010-04-07 | 1 | -0/+12 |
| | |||||
* | Remove app/views from the load paths [#4226 state:resolved] | José Valim | 2010-04-05 | 1 | -0/+1 |
| | |||||
* | Rename config.cookie_secret to config.secret_token and pass it as ↵ | José Valim | 2010-04-05 | 3 | -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é Valim | 2010-04-02 | 1 | -0/+6 |
| | |||||
* | Make X-Sendfile default to "" so it works correctly in dev mode. | wycats | 2010-03-26 | 1 | -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 the | Joshua Peek | 2010-03-20 | 1 | -18/+0 |
| | | | | load path anymore | ||||
* | Fix protect_against_forgery | Carlhuda | 2010-03-19 | 1 | -0/+27 |
| | |||||
* | Add mailers to paths in case someone wants to access it directly and ensures ↵ | José Valim | 2010-03-06 | 1 | -3/+4 |
| | | | | deep nesting works in controllers. | ||||
* | Change generated code to replace faulty comment | Carlhuda | 2010-03-04 | 1 | -1/+1 |
| | |||||
* | Deprecated ActionController::Base.session_options= and ↵ | Carlhuda | 2010-03-04 | 4 | -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 warnings | Carlhuda | 2010-03-04 | 5 | -8/+8 |
| | |||||
* | Fix all the broken tests due to the AC configuration refactor | Carl Lerche | 2010-03-03 | 2 | -2/+3 |
| | |||||
* | Move remote_ip to a middleware: | Carlhuda | 2010-03-03 | 1 | -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) == ↵ | Carlhuda | 2010-03-02 | 1 | -1/+1 |
| | | | | defined?(ActiveRecord::Base) | ||||
* | nested controllers need to be explicitly declared with the new mapper | Joshua Peek | 2010-02-28 | 1 | -1/+2 |
| | |||||
* | reload! on console now works as expected. [#3822 status:resolved] | José Valim | 2010-02-26 | 1 | -3/+29 |
| | |||||
* | Final pass at removing the router from a global constant | Carlhuda | 2010-02-25 | 1 | -0/+42 |
| | |||||
* | Woops, forgot to actually add active_support/core_ext/file/path.rb | Carlhuda | 2010-02-23 | 1 | -0/+1 |
| | |||||
* | Revert "Fix test load paths for those not using bundler" | Carlhuda | 2010-02-23 | 1 | -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. | Carlhuda | 2010-02-23 | 1 | -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é Valim | 2010-02-21 | 1 | -0/+11 |
| | |||||
* | Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵ | José Valim | 2010-02-19 | 1 | -3/+15 |
| | | | | after_initializer is executed after to_prepare callbacks. | ||||
* | Ensure config.after_initializer is executed before building the middleware ↵ | José Valim | 2010-02-18 | 1 | -0/+14 |
| | | | | stack. | ||||
* | Merge master. | José Valim | 2010-02-17 | 1 | -1/+1 |
|\ | |||||
| * | Fix test load paths for those not using bundler | Joshua Peek | 2010-02-15 | 1 | -1/+1 |
| | | |||||
* | | Rename Rails::Subscriber to Rails::LogSubscriber | Prem Sichanugrist | 2010-02-16 | 1 | -1/+1 |
|/ | |||||
* | Check if Test::Unit is defined before adding backtrace filter. | José Valim | 2010-02-07 | 1 | -0/+17 |
| | |||||
* | Add config.generators.templates to provide alternative paths for template ↵ | José Valim | 2010-02-06 | 1 | -11/+4 |
| | | | | lookup. | ||||
* | Deprecate AC configuration values which were moved to Rack. | José Valim | 2010-02-01 | 2 | -2/+2 |
| | |||||
* | Add config.generators.fallbacks. | José Valim | 2010-02-01 | 1 | -1/+12 |
| | |||||
* | Improve railtie deprecation messages. | José Valim | 2010-01-30 | 1 | -0/+7 |
| | |||||
* | Move the ActiveRecord generator settings into the Railtie | Carl Lerche | 2010-01-28 | 1 | -1/+1 |
| | |||||
* | Add more tests to some key points in Railties. | José Valim | 2010-01-28 | 3 | -3/+30 |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Add config.to_prepare back and add tests for it. | José Valim | 2010-01-28 | 1 | -0/+23 |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Test::Unit Railtie | Carlhuda | 2010-01-28 | 1 | -2/+8 |
| | |||||
* | Move Rails::Rack::Metal to Rails::Application::Metal and just add cascade if ↵ | José Valim | 2010-01-26 | 1 | -1/+6 |
| | | | | any metal was declared. | ||||
* | Refactor railties test, break huge files in smaller chunks and move ↵ | José Valim | 2010-01-26 | 13 | -271/+441 |
| | | | | initializers to application folder. | ||||
* | Ensure calling a method in Rails::Application does not instantiate a void ↵ | José Valim | 2010-01-26 | 1 | -0/+7 |
| | | | | application. | ||||
* | Ensure environment config has higher priority than application ones. | José Valim | 2010-01-24 | 1 | -1/+12 |
| | |||||
* | Move console stuff to its own directory. | José Valim | 2010-01-23 | 1 | -2/+2 |
| |