diff options
author | Xavier Noria <fxn@hashref.com> | 2010-11-15 19:45:46 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-11-15 19:45:46 +0100 |
commit | 91a6db90cf8b2c07af4cf64a9c587268106aadd5 (patch) | |
tree | dbc677fcc9d6a627f9b894bffddaf90d43a576c7 /railties/guides/source/configuring.textile | |
parent | 7c5c1a07c03ec03536636c26e09b80b29a59beed (diff) | |
parent | c2c2b8b96220b11eb3512b1eaaf7985c84f03d67 (diff) | |
download | rails-91a6db90cf8b2c07af4cf64a9c587268106aadd5.tar.gz rails-91a6db90cf8b2c07af4cf64a9c587268106aadd5.tar.bz2 rails-91a6db90cf8b2c07af4cf64a9c587268106aadd5.zip |
Merge branch 'master' of git://github.com/lifo/docrails
Diffstat (limited to 'railties/guides/source/configuring.textile')
-rw-r--r-- | railties/guides/source/configuring.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/configuring.textile b/railties/guides/source/configuring.textile index bb38c64307..28fff5c11e 100644 --- a/railties/guides/source/configuring.textile +++ b/railties/guides/source/configuring.textile @@ -32,7 +32,7 @@ config.filter_parameters << :password This is a setting for Rails itself. If you want to pass settings to individual Rails components, you can do so via the same +config+ object: <ruby> -config.active_record.colorize_logging = false +config.active_record.timestamped_migrations = false </ruby> Rails will use that particular setting to configure Active Record. @@ -45,6 +45,8 @@ h4. Rails General Configuration * +config.cache_store+ configures which cache store to use for Rails caching. Options include +:memory_store+, +:file_store+, +:mem_cache_store+ or the name of your own custom class. +* +config.colorize_logging+ (true by default) specifies whether or not to use ANSI color codes when logging information. + * +config.controller_paths+ accepts an array of paths that will be searched for controllers. Defaults to +app/controllers+. * +config.database_configuration_file+ overrides the default path for the database configuration file. Default to +config/database.yml+. @@ -105,8 +107,6 @@ h4. Configuring Active Record * +config.active_record.pluralize_table_names+ specifies whether Rails will look for singular or plural table names in the database. If set to +true+ (the default), then the Customer class will use the +customers+ table. If set to +false+, then the Customers class will use the +customer+ table. -* +config.active_record.colorize_logging+ (true by default) specifies whether or not to use ANSI color codes when logging information from ActiveRecord. - * +config.active_record.default_timezone+ determines whether to use +Time.local+ (if set to +:local+) or +Time.utc+ (if set to +:utc+) when pulling dates and times from the database. The default is +:local+. * +config.active_record.schema_format+ controls the format for dumping the database schema to a file. The options are +:ruby+ (the default) for a database-independent version that depends on migrations, or +:sql+ for a set of (potentially database-dependent) SQL statements. |