aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railtie.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix diagnostics page for routing errors.José Valim2011-12-151-2/+0
|
* Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365Piotrek Okoński2011-12-121-0/+1
|
* move show_detailed_exceptions? to Rescue modulelest2011-11-221-0/+2
|
* [IMPORTANT] Make "sprockets/railtie" require explicit.José Valim2011-06-291-1/+0
| | | | | | | | | | This makes "sprockets/railtie" explicit. This means that sprockets will be loaded when you require "rails/all". If you are not using requiring "rails/all", you need to manually load it with all other framework railties. In order to be complete, this commit also adds --skip-sprockets to the rails generator.
* Move controller configs to sprockets own railtie.José Valim2011-04-171-1/+1
|
* Unify sprockets config optionsJoshua Peek2011-03-301-1/+1
|
* Rename option to config.asset_pipelineJoshua Peek2011-03-291-1/+1
|
* Copy use_sprockets configJoshua Peek2011-03-291-0/+1
|
* Clean up asset_host and asset_path.José Valim2010-12-091-2/+2
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-4/+4
| | | | method_missing.
* Call it compile_methods! and do the same on AM.José Valim2010-09-271-2/+2
|
* Compile ActionController::Base.config's methods to avoid method_missing ↵thedarkone2010-09-271-0/+10
| | | | overhead.
* Do not require passing :app to mounted helpers, it's actually useless and ↵Piotr Sarnacki2010-09-081-1/+1
| | | | not DRY
* Cleanup deprecation warnings in Action ControllerCarlos Antonio da Silva2010-09-061-32/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Set only helpers_path on inherited hook in action_controller/railtie.rb and ↵Piotr Sarnacki2010-09-031-0/+9
| | | | use helper(:all) just after that
* Moved ActionMailer and ActionController railties options to inherited hookPiotr Sarnacki2010-09-031-11/+3
| | | | | | | | | | | This change is needed, because we must take namespace into account and if controller's/mailer's class is namespaced, engine's paths should be set instead of application's ones. The nice side effect of this is removing unneeded logic in ActionController::Base.inherited - now the helpers_path should be set correctly even for engine's controllers, so helper(:all) will always include correct helpers.
* Move ActionController::Railties::RoutesHelpers and ↵Piotr Sarnacki2010-09-031-2/+2
| | | | ActionMailer::Railties::RoutesHelper to AbstractController::Railties::RoutesHelpers
* Include application's helpers and router helpers by default, but include ↵Piotr Sarnacki2010-09-031-1/+2
| | | | engine's ones for controllers inside isolated namespace
* Add mounted_helpers to routesPiotr Sarnacki2010-09-031-1/+2
| | | | | | | | | | | | | | | | mounted_helpers are a bit similar to url_helpers. They're automatically included in controllers for Rails.application and each of mounted Engines. Mounted helper allows to call url_for and named helpers for given application. Given Blog::Engine mounted as blog_engine, there are 2 helpers defined: app and blog_engine. You can call routes for app and engine using those helpers: app.root_url app.url_for(:controller => "foo") blog_engine.posts_path blog_engine.url_for(@post)
* Clean up AM and AC railties.José Valim2010-07-241-19/+14
|
* Define a convention for descendants and subclasses.José Valim2010-07-051-1/+0
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* Move Rails::LogSubscriber to ActiveSupport::LogSubscriber, allowing ↵José Valim2010-06-241-3/+0
| | | | frameworks like ActiveRecord and ActiveResource to log outsude Rails::Application [#4816 state:resolved]
* Clean up the config object in ActionPack. Create config_accessor which just ↵José Valim2010-04-221-39/+26
| | | | delegates to the config object, reducing the number of deprecations and add specific tests.
* Fix a bug in ActionDispatch::Static where Rails cannot find assets if ↵José Valim2010-04-081-0/+6
| | | | started in another directory which is not the RAILS_ROOT.
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-1/+0
| | | | configuration in request.env. This is another step forward removing global configuration.
* Replace the placeholder base_hook API with on_load. To specify some code thatwycats2010-03-291-5/+5
| | | | | | | | should run during framework load do: ActiveSupport.on_load(:action_controller) do # Code run in the context of AC::Base end
* Move application configuration to the application configuration object, ↵José Valim2010-03-261-6/+7
| | | | remove railtie_name and engine_name and allow to set the configuration object.
* Fix protect_against_forgeryCarlhuda2010-03-191-1/+3
|
* Move request forgery protection configuration to the AC config objectCarl Lerche2010-03-081-2/+3
| | | | This is an interim solution pending revisiting the rails framework configuration situation.
* Make many parts of Rails lazy. In order to facilitate this,wycats2010-03-071-5/+9
| | | | | | | | | | | | add lazy_load_hooks.rb, which allows us to declare code that should be run at some later time. For instance, this allows us to defer requiring ActiveRecord::Base at boot time purely to apply configuration. Instead, we register a hook that should apply configuration once ActiveRecord::Base is loaded. With these changes, brings down total boot time of a new app to 300ms in production and 400ms in dev. TODO: rename base_hook
* Tweak out url_for uses :script_name and add some testsCarl Lerche2010-03-041-6/+0
|
* Get rid of relative_url_path in favor of respecting SCRIPT_NAME. Also added ↵Carlhuda2010-03-041-0/+6
| | | | a way to specify a default SCRIPT_NAME when generating URLs out of the context of a request.
* Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-041-3/+1
| | | | 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.
* Move session and session_store onto ActionDispatch and add deprecation warningsCarlhuda2010-03-041-17/+33
|
* Fix all the broken tests due to the AC configuration refactorCarl Lerche2010-03-031-0/+3
|
* Start refactoring the method of configuring ActionViewCarlhuda2010-03-031-0/+14
|
* Get the railties tests to pass again.Carlhuda2010-03-021-5/+0
|
* Moved initializers for ActionMailer and ActionController into their own railtiesCarlhuda2010-03-021-0/+5
|
* Make ActionController::Routing::Routes a DeprecatedProxyCarlhuda2010-02-261-1/+7
|
* Remove traces of SharedTestRoutes from user code; leave it as a standin for ↵Carlhuda2010-02-261-1/+0
| | | | Rails.application.routes in Rails internal tests
* Get URL helpers working again in integration tests.Carlhuda2010-02-251-0/+2
|
* Final pass at removing the router from a global constantCarlhuda2010-02-251-2/+8
|
* Continued effort to deglobalize the routerCarlhuda2010-02-251-0/+1
|
* Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-2/+2
|
* Rationalize railtie dependencies: AC uses AV; AR uses AMo; and Rails always ↵Jeremy Kemper2010-02-041-0/+1
| | | | uses AS.
* AC railtie should configure helpers path.José Valim2010-01-261-0/+4
|
* Add active_model/railtie back to generated boot.rb, add models back to ↵José Valim2010-01-251-5/+4
| | | | paths, load active_support/railtie since we need it and ensure default logger is set before config.
* Rename plugin_name to railtie_name and engine_name.José Valim2010-01-241-1/+1
|
* Moved more configuration away from bootstrap.José Valim2010-01-221-10/+0
|
* Add view paths to Engine setup.José Valim2010-01-221-2/+1
|