Commit 1041e5af1891266600bf68d0e7b2dfe99ae76a81
1 parent
76d74482
Exists in
master
and in
28 other branches
ActionItem170: overwriting default environments, copied from a fresh rails 2.0.2…
…-generated application (no substantial changes, it seems) git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1439 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
4 changed files
with
13 additions
and
7 deletions
Show diff stats
config/environment.rb
| @@ -44,6 +44,11 @@ Rails::Initializer.run do |config| | @@ -44,6 +44,11 @@ Rails::Initializer.run do |config| | ||
| 44 | # config.active_record.observers = :cacher, :garbage_collector | 44 | # config.active_record.observers = :cacher, :garbage_collector |
| 45 | # Make Active Record use UTC-base instead of local time | 45 | # Make Active Record use UTC-base instead of local time |
| 46 | # config.active_record.default_timezone = :utc | 46 | # config.active_record.default_timezone = :utc |
| 47 | + | ||
| 48 | + config.action_controller.session = { | ||
| 49 | + :session_key => '_tets_session', | ||
| 50 | + :secret => '7372009258e02886ca36278257637a008959504400f6286cd09133f6e9131d23460dd77e289bf99b480a3b4d017be0578b59335ce6a1c74e3644e37514926009' | ||
| 51 | + } | ||
| 47 | 52 | ||
| 48 | # See Rails::Configuration for more options | 53 | # See Rails::Configuration for more options |
| 49 | 54 |
config/environments/development.rb
| @@ -8,14 +8,11 @@ config.cache_classes = false | @@ -8,14 +8,11 @@ config.cache_classes = false | ||
| 8 | # Log error messages when you accidentally call methods on nil. | 8 | # Log error messages when you accidentally call methods on nil. |
| 9 | config.whiny_nils = true | 9 | config.whiny_nils = true |
| 10 | 10 | ||
| 11 | -# Enable the breakpoint server that script/breakpointer connects to | ||
| 12 | -config.breakpoint_server = true | ||
| 13 | - | ||
| 14 | # Show full error reports and disable caching | 11 | # Show full error reports and disable caching |
| 15 | config.action_controller.consider_all_requests_local = true | 12 | config.action_controller.consider_all_requests_local = true |
| 13 | +config.action_view.debug_rjs = true | ||
| 16 | config.action_controller.perform_caching = false | 14 | config.action_controller.perform_caching = false |
| 17 | config.action_view.cache_template_extensions = false | 15 | config.action_view.cache_template_extensions = false |
| 18 | -config.action_view.debug_rjs = true | ||
| 19 | 16 | ||
| 20 | # Don't care if the mailer can't send | 17 | # Don't care if the mailer can't send |
| 21 | -config.action_mailer.raise_delivery_errors = false | 18 | -config.action_mailer.raise_delivery_errors = false |
| 19 | +config.action_mailer.raise_delivery_errors = false | ||
| 22 | \ No newline at end of file | 20 | \ No newline at end of file |
config/environments/production.rb
| @@ -10,9 +10,10 @@ config.cache_classes = true | @@ -10,9 +10,10 @@ config.cache_classes = true | ||
| 10 | # Full error reports are disabled and caching is turned on | 10 | # Full error reports are disabled and caching is turned on |
| 11 | config.action_controller.consider_all_requests_local = false | 11 | config.action_controller.consider_all_requests_local = false |
| 12 | config.action_controller.perform_caching = true | 12 | config.action_controller.perform_caching = true |
| 13 | +config.action_view.cache_template_loading = true | ||
| 13 | 14 | ||
| 14 | # Enable serving of images, stylesheets, and javascripts from an asset server | 15 | # Enable serving of images, stylesheets, and javascripts from an asset server |
| 15 | # config.action_controller.asset_host = "http://assets.example.com" | 16 | # config.action_controller.asset_host = "http://assets.example.com" |
| 16 | 17 | ||
| 17 | -# Disable delivery errors if you bad email addresses should just be ignored | 18 | +# Disable delivery errors, bad email addresses will be ignored |
| 18 | # config.action_mailer.raise_delivery_errors = false | 19 | # config.action_mailer.raise_delivery_errors = false |
config/environments/test.rb
| @@ -13,7 +13,10 @@ config.whiny_nils = true | @@ -13,7 +13,10 @@ config.whiny_nils = true | ||
| 13 | config.action_controller.consider_all_requests_local = true | 13 | config.action_controller.consider_all_requests_local = true |
| 14 | config.action_controller.perform_caching = false | 14 | config.action_controller.perform_caching = false |
| 15 | 15 | ||
| 16 | +# Disable request forgery protection in test environment | ||
| 17 | +config.action_controller.allow_forgery_protection = false | ||
| 18 | + | ||
| 16 | # Tell ActionMailer not to deliver emails to the real world. | 19 | # Tell ActionMailer not to deliver emails to the real world. |
| 17 | # The :test delivery method accumulates sent emails in the | 20 | # The :test delivery method accumulates sent emails in the |
| 18 | # ActionMailer::Base.deliveries array. | 21 | # ActionMailer::Base.deliveries array. |
| 19 | -config.action_mailer.delivery_method = :test | ||
| 20 | \ No newline at end of file | 22 | \ No newline at end of file |
| 23 | +config.action_mailer.delivery_method = :test |