Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 1 | -2/+2 |
| | |||||
* | Test that a Rails.queue consumer is automatically started in production | Jeremy Kemper | 2012-10-13 | 1 | -1/+2 |
| | |||||
* | Backpedal from class-oriented config.queue. Set an actual queue instance. | Jeremy Kemper | 2012-10-12 | 1 | -2/+2 |
| | |||||
* | Fix build for Queue. | Arun Agrawal | 2012-09-17 | 1 | -1/+1 |
| | |||||
* | Move queue classes to ActiveSupport | Santiago Pastorino | 2012-09-14 | 1 | -2/+2 |
| | |||||
* | Fix failure on middleware/exceptions_test | José Valim | 2012-08-23 | 1 | -1/+1 |
| | | | | | | | The reason the test was failing was because when the test invokes `app.config`, the app is loaded and, as `eager_load` is set to true, it disables the dependency loading mechanism, so controllers that are later defined are not loaded. | ||||
* | Get rid of config.preload_frameworks in favor of config.eager_load_namespaces | José Valim | 2012-08-21 | 1 | -1/+1 |
| | | | | | | | The new option allows any Ruby namespace to be registered and set up for eager load. We are effectively exposing the structure existing in Rails since v3.0 for all developers in order to make their applications thread-safe and CoW friendly. | ||||
* | Allow users to choose when to eager_load the application or not. | José Valim | 2012-08-21 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | Previously, the eager load behavior was mostly coupled to config.cache_classes, however this was suboptimal since in some environments a developer may want to cache classes but not necessarily load them all on boot (for example, test env). This pull request also promotes the use of config.eager_load set to true by default in production. In the majority of the cases, this is the behavior you want since it will copy most of your app into memory on boot (which was also the previous behavior). Finally, this fix a long standing Rails bug where it was impossible to access a model in a rake task when Rails was set as thread safe. | ||||
* | /rails/info/routes path shows routing information | schneems | 2012-05-24 | 1 | -0/+2 |
| | | | | Will show similar contents to the output of `$ rake routes` in the browser in development. This speeds the time required to generate routes, since the application is already initialized. | ||||
* | Allow configuring a different queue consumer | Carlos Antonio da Silva | 2012-05-04 | 1 | -2/+2 |
| | | | | | | Also make sure to not use default queue consumer with custom queue implementation. It is up to the new queue implementation to start / shutdown the consumer. | ||||
* | Use Rails::Queueing::Queue instead of Queue so people can build their own ↵ | José Valim | 2012-04-28 | 1 | -1/+1 |
| | | | | consumers around stdlib's Queue | ||||
* | Initial queue implementation | Yehuda Katz | 2012-04-26 | 1 | -0/+7 |
| | |||||
* | Remove default match without specified method | Jose and Yehuda | 2012-04-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964 | ||||
* | Fix `$rails_rake_task` global variable warning without replacing the value ↵ | Jonathan Viney | 2012-01-22 | 1 | -2/+1 |
| | | | | | of $rails_rake_task if it is already set. Fixes #4591. | ||||
* | Clean up the cache before the request in case we are running in the ↵ | José Valim | 2011-12-15 | 1 | -1/+1 |
| | | | | reload_classes_only_on_change schema. | ||||
* | FileUpdateChecker should be able to handle deleted files. | José Valim | 2011-12-13 | 1 | -4/+3 |
| | |||||
* | Clean up FileUpdateChecker API. | José Valim | 2011-12-13 | 1 | -1/+1 |
| | |||||
* | Move hooks back to initializers (we need an API that allows hooks to be ↵ | José Valim | 2011-12-13 | 1 | -4/+21 |
| | | | | replaced). | ||||
* | Revert "Provide a unique point for running initializers." | José Valim | 2011-12-13 | 1 | -4/+0 |
| | | | | | | | | | | This reverts commit c2e3ce8d1e1174e66536d59d8d97eb2cc8ce6f25. Conflicts: railties/lib/rails/application/configuration.rb railties/lib/rails/application/finisher.rb railties/lib/rails/engine.rb | ||||
* | Speed up development by only reloading classes if dependencies files changed. | José Valim | 2011-12-12 | 1 | -7/+7 |
| | | | | | | | | This can be turned off by setting `config.reload_classes_only_on_change` to false. Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading. Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3 | ||||
* | Give hooks the flexibility to choose the type of callback. | José Valim | 2011-12-12 | 1 | -6/+4 |
| | |||||
* | Provide a unique point for running initializers. | José Valim | 2011-12-12 | 1 | -0/+4 |
| | |||||
* | Improve docs for Rails::Application and add routes_reloader_hook and ↵ | José Valim | 2011-12-12 | 1 | -14/+22 |
| | | | | app_reloader_hooks. | ||||
* | global variable `$rails_rake_task' not initialized Warning removed | Arun Agrawal | 2011-11-28 | 1 | -0/+1 |
| | |||||
* | Explicitly define main_app proxy | Piotr Sarnacki | 2011-04-25 | 1 | -0/+4 |
| | |||||
* | Move app initializers to sprockets railtie. | José Valim | 2011-04-17 | 1 | -16/+2 |
| | |||||
* | Booya, sprockets now works from Engines. | José Valim | 2011-04-15 | 1 | -6/+1 |
| | |||||
* | Index sprockets environment if perform caching is enabled | Joshua Peek | 2011-04-12 | 1 | -0/+6 |
| | |||||
* | Unify sprockets config options | Joshua Peek | 2011-03-30 | 1 | -3/+4 |
| | |||||
* | Rename option to config.asset_pipeline | Joshua Peek | 2011-03-29 | 1 | -1/+7 |
| | |||||
* | Move sprockets initializers back to application | Joshua Peek | 2011-03-29 | 1 | -0/+8 |
| | |||||
* | Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepare | John Firebaugh | 2010-12-20 | 1 | -2/+6 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Provide a cleaner syntax for paths configuration that does not rely on ↵ | José Valim | 2010-10-06 | 1 | -1/+1 |
| | | | | method_missing. | ||||
* | Update Rails' built in routes to use RouteSet#append | Carl Lerche | 2010-09-17 | 1 | -1/+3 |
| | |||||
* | Ensure routes are loaded only after the initialization process finishes, ↵ | José Valim | 2010-09-02 | 1 | -0/+7 |
| | | | | ensuring all configuration options were applied. | ||||
* | renames load_(once_)paths to autoload_(once_)paths in dependencies and config | Xavier Noria | 2010-06-24 | 1 | -5/+5 |
| | |||||
* | Alias app to build_middleware_stack for clarity. | José Valim | 2010-06-21 | 1 | -1/+1 |
| | |||||
* | Add lib to load paths when application is inherited to be able to load lib ↵ | José Valim | 2010-06-02 | 1 | -1/+1 |
| | | | | code during configuration. | ||||
* | Expose remaining hooks to minimize the need for a Railtie based on feedback ↵ | José Valim | 2010-05-16 | 1 | -0/+1 |
| | | | | from plugin developers. | ||||
* | Ensure that eager_load actually takes place just after the middleware stack ↵ | José Valim | 2010-05-15 | 1 | -2/+8 |
| | | | | | | is built by using another pattern. Also create a engine_blank_point initializer to ensure any :before or :after hooks defined inside engines won't move the configuration initializers to other places. | ||||
* | Reorganized initializers a bit to enable better hooks for common cases ↵ | wycats | 2010-05-15 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | 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. | ||||
* | Rename config.cookie_secret to config.secret_token and pass it as ↵ | José Valim | 2010-04-05 | 1 | -0/+4 |
| | | | | configuration in request.env. This is another step forward removing global configuration. | ||||
* | Move railties/builtin into lib | Joshua Peek | 2010-03-20 | 1 | -2/+2 |
| | |||||
* | Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure ↵ | José Valim | 2010-02-19 | 1 | -7/+4 |
| | | | | after_initializer is executed after to_prepare callbacks. | ||||
* | Ensure config.after_initializer is executed before building the middleware ↵ | José Valim | 2010-02-18 | 1 | -4/+6 |
| | | | | stack. | ||||
* | Add config.to_prepare back and add tests for it. | José Valim | 2010-01-28 | 1 | -1/+7 |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Refactor MetalLoader and RoutesReloader to rely less on class configuration. | José Valim | 2010-01-28 | 1 | -2/+2 |
| | | | | Signed-off-by: Carl Lerche <carllerche@mac.com> | ||||
* | Ensure all initializers are collections. | José Valim | 2010-01-26 | 1 | -8/+8 |
| | |||||
* | Fix a couple failures on 1.9.1. | José Valim | 2010-01-24 | 1 | -1/+1 |
| | |||||
* | Ensure metals and initializers in plugins are loaded. | José Valim | 2010-01-24 | 1 | -1/+1 |
| |