aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/configuration_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* remove Rails application fallback from AD::IntegrationTestSergey Nartimov2011-12-231-0/+5
| | | | set AD::IntegrationTest.app in railtie initializer
* just require things onceAaron Patterson2011-12-211-4/+2
|
* append puts the routes after the default, which causes a 404. instead use ↵Aaron Patterson2011-12-211-1/+1
| | | | prepend
* Get rid of more 1.8.x dead codeJosé Valim2011-12-201-6/+2
|
* put backtrace_cleaner to envlest2011-11-281-4/+5
|
* middlewares should use logger from envlest2011-11-251-0/+1
|
* Fix railtie configuration test calling PostsController#create which didn't existDenis Odorcic2011-10-271-1/+1
|
* possibly useless use of :: in void context Warning removedArun Agrawal2011-09-301-4/+4
|
* Rails.application#env_config is now public API. [Closes #1924]Franck Verrot2011-07-111-0/+9
|
* Make Rails.groups accept arrays.José Valim2011-07-101-1/+1
|
* Add Rails.groups to encapsulate available groups for require.José Valim2011-06-211-0/+15
|
* Fix double definition of #teardown. Thanks @mike-burns :+1:Jon Leighton2011-06-061-3/+0
|
* Solve the RAILS_ENV problem in the railties tests in a more generic wayJon Leighton2011-06-061-0/+4
|
* Fixes failing test, closes #1098.José Valim2011-05-171-1/+1
|
* Test csrf token param name customizationDavid Lee2011-05-101-2/+15
|
* Ensure params wrapper settings are not inherited and calculated each time.José Valim2011-05-061-3/+27
|
* Allow ignore_accept_header through configuration option.José Valim2011-05-021-0/+21
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-031-0/+10
| | | This will allow us to do a rootless JSON/XML request to server.
* added config.active_record.whitelist_attributes which creates an empty ↵Josh Kalderimis2011-04-241-0/+12
| | | | whitelist of attributes available for mass assignment for all models in your app
* added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵Josh Kalderimis2011-04-051-0/+22
| | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* remove AM delegating register_observer and register_interceptor to Mail and ↵Josh Kalderimis2011-04-041-0/+65
| | | | | | instead implement smarter versions allowing for string class names, also added proper Railtie support with tests. Signed-off-by: José Valim <jose.valim@gmail.com>
* 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.
* 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
|
* Provide a cleaner syntax for paths configuration that does not rely on ↵José Valim2010-10-061-2/+2
| | | | method_missing.
* revises implementation and documentation of csrf_meta_tags, and aliases ↵Xavier Noria2010-09-111-1/+1
| | | | csrf_meta_tag to it for backwards compatibilty
* Added ability to set asset_path for enginesPiotr Sarnacki2010-09-031-0/+15
|
* 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
|
* Make sure apps upgrading from 2.3 get defaulted to UTF-8 (ht: parndt)wycats2010-08-151-5/+15
|
* Simplify cookie_store by simply relying on cookies.signed.José Valim2010-05-181-2/+2
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-171-1/+2
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-161-2/+1
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Significantly improved internal encoding heuristics and support.wycats2010-05-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable
* Refactor tests by moving all middleware tests to the same place.José Valim2010-04-261-66/+5
|
* test refactorSantiago Pastorino2010-04-191-2/+8
|
* Added tests for config.action_controller.perform_cachingChetan Sarva2010-04-131-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é Valim2010-04-081-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é Valim2010-04-071-0/+12
|
* Rename config.cookie_secret to config.secret_token and pass it as ↵José Valim2010-04-051-0/+16
| | | | configuration in request.env. This is another step forward removing global configuration.
* Make X-Sendfile default to "" so it works correctly in dev mode.wycats2010-03-261-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.
* Fix protect_against_forgeryCarlhuda2010-03-191-0/+27
|
* Deprecated ActionController::Base.session_options= and ↵Carlhuda2010-03-041-2/+4
| | | | 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 warningsCarlhuda2010-03-041-2/+2
|
* Revert "Fix test load paths for those not using bundler"Carlhuda2010-02-231-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. Carlhuda2010-02-231-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.
* Fix test load paths for those not using bundlerJoshua Peek2010-02-151-1/+1
|
* Deprecate AC configuration values which were moved to Rack.José Valim2010-02-011-1/+1
|
* Improve railtie deprecation messages.José Valim2010-01-301-0/+7
|
* Add more tests to some key points in Railties.José Valim2010-01-281-1/+10
| | | | Signed-off-by: Carl Lerche <carllerche@mac.com>