aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
Commit message (Collapse)AuthorAgeFilesLines
* s/with/when/Xavier Noria2011-03-271-1/+1
|
* Add `config.force_ssl` configuration which will load `Rack::SSL` middleware ↵Prem Sichanugrist2011-03-271-0/+6
| | | | | | | | if set to true This will allow user to be able to force all requests to be under HTTPS protocol. This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
* Always use ActionDispatch::ShowExceptions middleware [#6462 state:resolved]Prem Sichanugrist2011-02-252-2/+39
| | | | This will make sure the application will raise `ActionController::RoutingError` in case "X-Cascade: pass" header was set, usually when there's no route match.
* Make sure that we set `env["action_dispatch.show_exceptions"]`Prem Sichanugrist2011-02-251-0/+15
| | | | This has been used by `show_exception` middleware even the setting wasn't get passed to `env` hash.
* We really don't care about IM middleware order, the important is that it ↵Emilio Tagua2011-02-181-1/+1
| | | | gets included.
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-152-0/+66
|\ | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
| * fix db:fixtures:load with FIXTURES specified [#6061 state:resolved]John Hawthorn2011-02-061-0/+17
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Additionally trigger i18n configuration setup before any eager loading ↵Saimon Moore2011-02-011-0/+30
| | | | | | | | | | | | | | | | | | [#6353 state:resolved] This handles the case where config.cache_classes is true and classes are loaded before the I18n load path has had a chance to be populated. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * Add test cases for model and migration generators which use `change` method.Prem Sichanugrist2011-01-041-0/+19
| |
* | Merge remote branch 'rails/master' into identity_mapEmilio Tagua2010-12-203-4/+54
|\| | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/persistence.rb
| * Small changes on AD::Reloader.José Valim2010-12-201-3/+3
| |
| * Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepareJohn Firebaugh2010-12-201-4/+4
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
| * Introduce ActionDispatch::ReloaderJohn Firebaugh2010-12-201-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | Based on the implementation on the 2-3-stable branch, patches by Hongli Lai <hongli@phusion.nl>, and helpful suggestions from José Valim. Hongli Lai's patches included locking around the request cycle; this is now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/). [#2873] Signed-off-by: José Valim <jose.valim@gmail.com>
| * Bring back config.action_view.cache_template_loading [#5847 state:resolved]Piotr Sarnacki2010-12-161-0/+38
| |
| * Ensure asset_path defaults to nil for applicationJosé Valim2010-12-091-0/+5
| |
* | Fix typo.Emilio Tagua2010-11-191-1/+1
| |
* | Don't load IdentityMap middleware if not enabled. Simplify middleware.Emilio Tagua2010-11-191-0/+5
| |
* | Use IdentityMap middleware to flush map on each request.Emilio Tagua2010-11-192-1/+3
|/
* Ensure that initializers are executed before loading rake tasksPiotr Sarnacki2010-11-181-0/+16
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Add config.action_controller.include_all_helpers, by default it is set to true.Piotr Sarnacki2010-11-181-0/+60
| | | | | | | In older rails versions there was a way to use only helpers from helper file corresponding to current controller and you could also include all helpers by saying 'helper :all' in controller. This config allows to return to older behavior by setting it to false.
* Tidy up generators commits.José Valim2010-11-171-11/+2
|
* Fix generators tests on ruby 1.9Piotr Sarnacki2010-11-171-6/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Do not allow to use plugin_new generator directly, you should use Usage:Piotr Sarnacki2010-11-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rails new APP_PATH [options] Options: -G, [--skip-git] # Skip Git ignores and keeps -r, [--ruby=PATH] # Path to the Ruby binary of your choice # Default: /Users/drogus/.rvm/rubies/ruby-1.8.7-p302/bin/ruby -b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL) [--edge] # Setup the application with Gemfile pointing to Rails repository [--dev] # Setup the application with Gemfile pointing to your Rails checkout [--skip-gemfile] # Don't create a Gemfile -d, [--database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) # Default: sqlite3 -O, [--skip-active-record] # Skip Active Record files -m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL) -J, [--skip-prototype] # Skip Prototype files -T, [--skip-test-unit] # Skip Test::Unit files Runtime options: -s, [--skip] # Skip files that already exist -p, [--pretend] # Run but do not make any changes -f, [--force] # Overwrite files that already exist -q, [--quiet] # Supress status output Rails options: -v, [--version] # Show Rails version number and quit -h, [--help] # Show this help message and quit Description: The 'rails new' command creates a new Rails application with a default directory structure and configuration at the path you specify. Example: rails new ~/Code/Ruby/weblog This generates a skeletal Rails installation in ~/Code/Ruby/weblog. See the README in the newly created application to get going. command
* Allow running `rails plugin new` command inside rails applicationPiotr Sarnacki2010-11-161-0/+6
|
* Strip regexp anchors from rake routes output [#5934 state:resolved]Andrew White2010-11-091-0/+9
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-064-20/+19
| | | | method_missing.
* Move ETag and ConditionalGet logic from AD::Response to the middleware stack.José Valim2010-10-031-21/+43
|
* reload_routes! is part of the public API and should not be removed.José Valim2010-10-021-1/+8
|
* Fix a routing test. Reorganize middleware tests.José Valim2010-10-026-151/+153
|
* Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-262-3/+3
| | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController.
* Fix typo and add sanity test for code statistics rake task.Emilio Tagua2010-09-241-1/+6
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* third parameter for rack must respond to eachAaron Patterson2010-09-221-2/+2
|
* Send 'rails runner' help message to stdout instead of stderr.rohit2010-09-191-2/+1
| | | | | | [#5661 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Fix output of 'rails runner --help' [#4249 state:open]rohit2010-09-181-0/+5
|
* Add RouteSet#appendCarl Lerche2010-09-171-0/+28
| | | Allows specifying blocks to the routeset that will get appended after the RouteSet is drawn.
* Only add Rack::Cache to the middleware stack if ↵Sparky2010-09-152-5/+46
| | | | config.action_controller.perform_caching is set.
* Add tests for Rack::CacheCarlhuda2010-09-131-0/+148
|
* First pass at Rack::Cachewycats2010-09-131-4/+5
|
* Fix routing testPiotr Sarnacki2010-09-111-4/+2
| | | | Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
* revises implementation and documentation of csrf_meta_tags, and aliases ↵Xavier Noria2010-09-111-1/+1
| | | | csrf_meta_tag to it for backwards compatibilty
* Merge remote branch 'drogus/engines'wycats2010-09-112-2/+2
|\
| * Fix warning by removing |map| from routes.drawPiotr Sarnacki2010-09-081-1/+1
| |
| * Change app to main_app in mounted_helpersPiotr Sarnacki2010-09-081-1/+1
| |
* | Add configuration option for tld lengthSimon Jefford2010-09-091-0/+7
|/
* Removed deprecated router API from railtiesPiotr Sarnacki2010-09-053-11/+11
|
* mounted helpers should be included in ActionMailerPiotr Sarnacki2010-09-031-0/+1
|
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-0/+15
|
* Ensure that Rails.application.initialize! is called only oncePiotr Sarnacki2010-09-031-0/+5
|
* Move singleton pattern to Railtie and remove Engine::Configurable and ↵Piotr Sarnacki2010-09-031-7/+6
| | | | Application::Configurable in favor of unified Railtie::Configurable
* Removed most of deprecated stuff from Application and EnginePiotr Sarnacki2010-09-031-16/+0
|