aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* adding Rails::Queueing::ContainerAaron Patterson2012-07-191-1/+1
| | | | | | | | | | | | | | | This allows us to do: In your configuration: Rails.queue[:image_queue] = SomeQueue.new Rails.queue[:mail_queue] = SomeQueue.new In your app code: Rails.queue[:mail_queue].push MailJob.new Both jobs pushed to the same default queue Rails.queue.push DefaultJob.new Rails.queue[:default].push DefaultJob.new
* move route_inspector to actionpack@schneems and @mattt2012-07-071-2/+2
| | | | this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties.
* Remove unused responsibilities and add a few load definitions to enginesJosé Valim2012-06-291-67/+63
| | | | | | | | Since plugins were removed, we can clean up a few methods in engines. We also use this opportunity to move `load_console`, `load_tasks` and `load_runner` to Rails::Engine. This means that, if someone wants to improve script/rails for engines to support console or runner commands, part of the work is already done.
* Remove unnecessary Railties structure now that plugins are goneJosé Valim2012-06-291-59/+68
|
* Add support runner hook.kennyj2012-05-291-0/+11
|
* Fix railties_order when application object is passedPiotr Sarnacki2012-05-271-1/+1
| | | | | | | | | | | | | | | railites_order method, introduced in 40b19e0, had a bug that was causing loading application instance twice in initializers if railties_order already included application instance. So for example railties_order = [Foo::Engine, :main_app, Bar::Engine] would result in such railties array: [MyApp::Application, Foo::Engine, MyAppApplication, Bar::Engine] In order to fix it, we need to check for existence of application in both railties_order and railties arrays.
* use File.join to decrease dependencies on PathnameAaron Patterson2012-05-231-1/+1
|
* initialize instance variablesAaron Patterson2012-05-221-2/+6
|
* Allow configuring a different queue consumerCarlos Antonio da Silva2012-05-041-1/+1
| | | | | | 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.
* Define only writer method for queue, as reader is declaredCarlos Antonio da Silva2012-04-281-1/+2
| | | | Remove deprecation warning of method redefined.
* add a factory method for queue construction so that apps can have multiple ↵Aaron Patterson2012-04-271-1/+5
| | | | queues
* Initial queue implementationYehuda Katz2012-04-261-1/+5
|
* Remove not needed requiresSantiago Pastorino2012-03-311-1/+0
|
* Rails.initialized? can be called at any time without raising an exception ↵Franck Verrot2012-03-281-0/+4
| | | | | | | | | | [Closes #2507] Changes: * `Rails.initialized=` has been removed * `Rails.initialized?` and `Rails.application.initialized?` are now * delegating to `MyApp::Application.initialized?`
* Rack::SSL -> ActionDispatch::SSLRafael Mendonça França2012-03-171-2/+1
|
* Remove remaining http_only? calls.José Valim2012-03-141-4/+4
|
* Change api_only to http_onlyCarlos Antonio da Silva2012-03-101-4/+4
| | | | [Carlos Antonio da Silva & Santiago Pastorino]
* Add config.middleware.api_only!Carlos Antonio da Silva and Santiago Pastorino2012-03-051-4/+4
|
* Handle files from ActionDispatch::Static with Rack::Sendfile (fixes #5225)Piotr Sarnacki2012-03-031-4/+4
| | | | | | | | This makes rails behave properly when you serve static assets and you have X-Sendfile headers enabled. Nevertheless in most cases you should not rely on that and serve static assets with a webserver like Apache or Nginx (as you already have it in place anyway if you use X-Sendfile)
* Reverted build_original_fullpath method, as per discussion at ↵Nathan Broadbent2012-01-281-1/+9
| | | | https://github.com/rails/rails/pull/4470/files#r393461
* Refactored watchable_args and build_original_fullpath methods in ↵Nathan Broadbent2012-01-151-13/+2
| | | | railties/lib/rails/application.rb
* config.force_ssl should mark the session as secure.José Valim2012-01-131-0/+3
|
* Rails::Plugin has goneSantiago Pastorino2012-01-031-3/+2
|
* A few doc changesVijay Dev2011-12-241-9/+2
|
* Add ORIGINAL_FULLPATH to envPiotr Sarnacki2011-12-211-0/+17
| | | | | | | | | | | This behaves similarly to REQUEST_URI, but we need to implement it on our own because REQUEST_URI is not reliable. Note that since PATH_INFO does not contain information about trailing question mark, this is not 100% accurate, for example `/foo?` will result in `/foo` in ORIGINAL_FULLPATH
* Allow a custom exceptions app to set.José Valim2011-12-161-1/+1
|
* Extract the rendering of public exceptions pages into a Rack app.José Valim2011-12-161-1/+1
|
* Fix diagnostics page for routing errors.José Valim2011-12-151-0/+1
|
* FileUpdateChecker should be able to handle deleted files.José Valim2011-12-131-1/+1
|
* Move hooks back to initializers (we need an API that allows hooks to be ↵José Valim2011-12-131-32/+0
| | | | replaced).
* Add config.file_watcher so developers can provide their own watchers (for ↵José Valim2011-12-131-2/+1
| | | | instance, hooking on fsevents).
* Revert "Provide a unique point for running initializers."José Valim2011-12-131-5/+5
| | | | | | | | | | 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é Valim2011-12-121-2/+38
| | | | | | | | 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é Valim2011-12-121-7/+9
|
* Provide a unique point for running initializers.José Valim2011-12-121-4/+5
|
* Improve docs for Rails::Application and add routes_reloader_hook and ↵José Valim2011-12-121-8/+55
| | | | app_reloader_hooks.
* Split ShowExceptions responsibilities in two middlewares.José Valim2011-12-011-0/+3
|
* put backtrace_cleaner to envlest2011-11-281-1/+2
|
* middlewares should use logger from envlest2011-11-251-1/+2
|
* Allow to change engine's loading priority with config.railties_order=Piotr Sarnacki2011-11-231-0/+22
|
* Rely on a public contract between railties instead of accessing railtie ↵José Valim2011-11-231-0/+4
| | | | methods directly.
* add ActionController::Metal#show_detailed_exceptions?lest2011-11-221-1/+1
|
* Extend IRB right before starting IRB to remove dependency on IRB from ↵Akira Matsuda2011-11-101-2/+0
| | | | Rails::Application
* Modulize Rails console methods so that other console libraries such as Pry ↵Akira Matsuda2011-11-091-0/+2
| | | | can include these methods
* Unify logger and taggedlogging middleware as both address logging concerns.José Valim2011-10-191-2/+1
|
* Added X-Request-Id tracking and TaggedLogging to easily log that and other ↵David Heinemeier Hansson2011-10-191-0/+2
| | | | production concerns
* :group => :assets should only run in the assets environment.José Valim2011-10-021-1/+1
|
* Make the Rack::SSL middleware configurableJustin Leitgeb2011-09-261-1/+1
|
* `rake assets:precompile` loads the application but does not initialize it.José Valim2011-09-241-3/+2
| | | | | | | | | | | | | To the app developer, this means configuration add in config/initializers/* will not be executed. Plugins developers need to special case their initializers that are meant to be run in the assets group by adding :group => :assets. Conflicts: railties/CHANGELOG railties/test/application/assets_test.rb
* dealing with some -w warnings on startupAaron Patterson2011-08-241-0/+5
|