aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
Commit message (Collapse)AuthorAgeFilesLines
* [ci skip] builtin -> built-inAkshay Vishnoi2014-04-201-1/+1
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-04-181-3/+11
|\
| * [ci skip] document `statement_limit` schneems2014-04-151-1/+11
| | | | | | | | | | Per discussion at https://github.com/rails/rails/issues/14645#issuecomment-40499409
| * [ci skip] PP does not generate pass by defaultschneems2014-04-151-2/+0
| | | | | | | | This was changed in https://github.com/rails/rails/pull/13415/files
* | Revise 'sqlite3:' URL handling for smoother upgradesMatthew Draper2014-04-031-2/+2
|/ | | | | | | | | | | | | | | | Restore the 4.0 behaviour for 'sqlite3:///', but deprecate it. We'll change to the absolute-path interpretation in 4.2. The current "correct" spellings for in-memory, relative, and absolute URLs, respectively, are: sqlite3::memory: sqlite3:relative/path sqlite3:/full/path Substantially reverses/defers fbb79b517f3127ba620fedd01849f9628b78d6ce. Uncovered by @guilleiguaran while investigating #14495, though that sounds like a different issue.
* fix log_tags request object grammarIain D Broadfoot2014-03-211-1/+1
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-03-071-1/+1
|\ | | | | | | | | Conflicts: guides/source/4_1_release_notes.md
| * Tweak Configuring Guide languageGaurish Sharma2014-02-231-1/+1
| | | | | | the fact that Rails is multi-thread by default is not very relevant. see https://github.com/rails/rails/pull/13998 [ci skip]
* | Fix guide about `config.active_record.default_timezone` [ci skip]joker10072014-03-061-1/+1
| | | | | | | | Now the initial value of ActiveRecord.default_timezone is always :utc
* | [ci skip] use secrets.secret_key_base instead of config.secret_key_baseKuldeep Aggarwal2014-03-011-1/+1
|/ | | | use secrets.yml instead of secret_token.rb
* `Rails.threadsafe!` mode is deprecatedGaurish Sharma2014-02-101-1/+1
| | | | [ci skip]
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-02-091-2/+1
|\ | | | | | | | | | | | | Conflicts: guides/source/active_record_validations.md guides/source/api_documentation_guidelines.md guides/source/configuring.md
| * `easiy` => `easy`Vipul A M2014-01-241-1/+1
| |
| * Remove duplicate configuration option for ActiveSupport [ci skip]Zachary Scott2014-01-161-1/+0
| | | | | | | | Fixes rails/rails#13732
* | Merge branch 'dump-schema-after-migration-flag' of ↵Xavier Noria2014-02-061-0/+6
|\ \ | | | | | | | | | | | | | | | | | | git://github.com/emilsoman/rails into emilsoman-dump-schema-after-migration-flag Conflicts: activerecord/CHANGELOG.md
| * | Add config to disable schema dump after migrationEmil Soman2014-02-061-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add a config on Active Record named `dump_schema_after_migration` * Schema dump doesn't happen if the config is set to false * Set default value of the config to true * Set config in generated production environment file to false * Update configuration guide * Update CHANGELOG
* | | Fixed typos [ci skip]Calvin Tam2014-02-051-2/+2
|/ /
* | Document default trim mode for Erubis and affected ERB tags [ci skip]Zachary Scott2014-01-311-1/+1
| | | | | | | | Fixes #12963
* | Log which keys were set to nil in deep_mungeLukasz Sarnacki2014-01-281-0/+4
| | | | | | | | | | | | | | | | deep_munge solves CVE-2013-0155 security vulnerability, but its behaviour is definately confuisng. This commit adds logging to deep_munge. It logs keys for which values were set to nil. Also mentions in guides were added.
* | Rails config for raise on missing translationsKassio Borges2014-01-271-0/+2
| | | | | | | | | | Add a config to setup whether raise exception for missing translation or not.
* | docs, clarify usage of `action_mailer.default_options`. [ci skip]. Closes ↵Yves Senn2014-01-271-4/+12
| | | | | | | | #13820.
* | Rename subsecond_fraction_digits option to time_precisionAndrew White2014-01-261-0/+2
| |
* | Merge pull request #13728 from semenyukdmitriy/masterYves Senn2014-01-221-1/+1
|\ \ | | | | | | Added missing `file` delivery method to the Configuration Guide
| * | [ci skip] Added missing `file` delivery methodSemenyuk Dmitriy2014-01-221-1/+1
| |/
* | Ensure Active Record connection consistencyschneems2014-01-091-1/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently Active Record can be configured via the environment variable `DATABASE_URL` or by manually injecting a hash of values which is what Rails does, reading in `database.yml` and setting Active Record appropriately. Active Record expects to be able to use `DATABASE_URL` without the use of Rails, and we cannot rip out this functionality without deprecating. This presents a problem though when both config is set, and a `DATABASE_URL` is present. Currently the `DATABASE_URL` should "win" and none of the values in `database.yml` are used. This is somewhat unexpected to me if I were to set values such as `pool` in the `production:` group of `database.yml` they are ignored. There are many ways that active record initiates a connection today: - Stand Alone (without rails) - `rake db:<tasks>` - ActiveRecord.establish_connection - With Rails - `rake db:<tasks>` - `rails <server> | <console>` - `rails dbconsole` We should make all of these behave exactly the same way. The best way to do this is to put all of this logic in one place so it is guaranteed to be used. Here is my prosed matrix of how this behavior should work: ``` No database.yml No DATABASE_URL => Error ``` ``` database.yml present No DATABASE_URL => Use database.yml configuration ``` ``` No database.yml DATABASE_URL present => use DATABASE_URL configuration ``` ``` database.yml present DATABASE_URL present => Merged into `url` sub key. If both specify `url` sub key, the `database.yml` `url` sub key "wins". If other paramaters `adapter` or `database` are specified in YAML, they are discarded as the `url` sub key "wins". ``` ### Implementation Current implementation uses `ActiveRecord::Base.configurations` to resolve and merge all connection information before returning. This is achieved through a utility class: `ActiveRecord::ConnectionHandling::MergeAndResolveDefaultUrlConfig`. To understand the exact behavior of this class, it is best to review the behavior in activerecord/test/cases/connection_adapters/connection_handler_test.rb though it should match the above proposal.
* | Automatically maintain test database schemaJon Leighton2014-01-021-0/+2
|/ | | | | | | | | | | | | | * Move check from generated helper to test_help.rb, so that all applications can benefit * Rather than just raising when the test schema has pending migrations, try to load in the schema and only raise if there are pending migrations afterwards * Opt out of the check by setting config.active_record.maintain_test_schema = false * Deprecate db:test:* tasks. The test helper is now fully responsible for maintaining the test schema, so we don't need rake tasks for this. This is also a speed improvement since we're no longer reloading the test database on every call to "rake test".
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-12-201-1/+3
|\
| * [ci skip] add `assets.raise_runtime_errors` flagschneems2013-12-141-2/+4
| | | | | | | | | | The flag will be used in multiple places to check for errors during runtime if enabled. Source: https://github.com/rails/sprockets-rails/pull/100
* | Update configuring guide with I18n options regarding available localesJared Beck2013-12-191-0/+6
| | | | | | | | | | | | | | Add information about 'available_locales' and 'enforce_available_locales' to the configuring guide. Closes #13202. [ci skip]
* | Wrap 80 columns [ci skip]Rafael Mendonça França2013-12-021-5/+10
| |
* | Add documentation about the Action Dispatch salt configurationRafael Mendonça França2013-12-021-0/+8
| | | | | | | | [ci skip]
* | Use alphabetic orderRafael Mendonça França2013-12-021-2/+2
| | | | | | | | [ci skip]
* | :scissors:Rafael Mendonça França2013-12-021-1/+1
|/ | | | [ci skip]
* added schema_migrations_table_name to ActiveRecord::Base in order that the ↵Jerad Phelps2013-10-271-0/+2
| | | | | | | | | | | | | | | | | | | | name of the schema migrations table can be configured. consolidated test_schema_migrations_table_name tests Added changelog entry edited changelog removed commented lines removed reader ensure the schema migrations table is reset at end of test added entry to configuration guide guides typo and changelog order
* guides: configuring: fixing explanation of :after_initialize hookSebastian Gassner2013-10-011-1/+1
| | | | :after_initialize runs after config/initializers, not before
* fixes incorrect spelling of `action_on_unpermitted_parameters`Jared Beck2013-09-281-1/+1
| | | | See `actionpack/test/controller/parameters/raise_on_unpermitted_params_test.rb`
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2013-09-281-0/+6
|\
| * Added missing active record configurations.wangjohn2013-09-251-0/+6
| |
* | Fixed grammatical typo in configuring.md guide.Roman Kofman2013-09-271-1/+1
| |
* | Add notes about database connection pool [ci skip]Gaurish Sharma2013-09-221-0/+11
| |
* | Fix typos: the indefinite articles(a -> an)SUGINO Yasuhiro2013-09-131-1/+1
|/
* Remove whiny_nils config from the rails guidesCaroline Mota2013-08-261-19/+3
| | | | | | This option was removed from master. [ci skip]
* cleans the guides sources from fancy non-ASCII stuffXavier Noria2013-08-231-8/+8
|
* Merge pull request #10045 from senny/document_relative_url_rootYves Senn2013-08-071-2/+39
|\ | | | | document how to deploy to a subdirectory [ci skip]
| * document how to deploy to a subdirectory. #2992 [ci skip]Yves Senn2013-08-071-2/+39
| |
* | Documment config.log_formatter added on 51aeae91Rafael Mendonça França2013-07-111-0/+2
| | | | | | | | [ci skip]
* | fix "will be ran" and "has began" typos in configuration guidePhilip Dorrell2013-06-201-3/+3
| |
* | Consistent use of one space only after punctuationSunny Ripert2013-05-281-3/+3
| |
* | Update configuration docs for assets.enabled, as it's set true by default in ↵Anuj Dutta2013-05-191-1/+2
| | | | | | | | the configuration and doesn't appear in the config files anymore.
* | Update filter_parameters related docs, as they have been moved to initializers.Anuj Dutta2013-05-191-3/+5
| |