Commit 1041e5af1891266600bf68d0e7b2dfe99ae76a81

Authored by AntonioTerceiro
1 parent 76d74482

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
config/environment.rb
... ... @@ -44,6 +44,11 @@ Rails::Initializer.run do |config|
44 44 # config.active_record.observers = :cacher, :garbage_collector
45 45 # Make Active Record use UTC-base instead of local time
46 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 53 # See Rails::Configuration for more options
49 54  
... ...
config/environments/development.rb
... ... @@ -8,14 +8,11 @@ config.cache_classes = false
8 8 # Log error messages when you accidentally call methods on nil.
9 9 config.whiny_nils = true
10 10  
11   -# Enable the breakpoint server that script/breakpointer connects to
12   -config.breakpoint_server = true
13   -
14 11 # Show full error reports and disable caching
15 12 config.action_controller.consider_all_requests_local = true
  13 +config.action_view.debug_rjs = true
16 14 config.action_controller.perform_caching = false
17 15 config.action_view.cache_template_extensions = false
18   -config.action_view.debug_rjs = true
19 16  
20 17 # Don't care if the mailer can't send
21 18 -config.action_mailer.raise_delivery_errors = false
  19 +config.action_mailer.raise_delivery_errors = false
22 20 \ No newline at end of file
... ...
config/environments/production.rb
... ... @@ -10,9 +10,10 @@ config.cache_classes = true
10 10 # Full error reports are disabled and caching is turned on
11 11 config.action_controller.consider_all_requests_local = false
12 12 config.action_controller.perform_caching = true
  13 +config.action_view.cache_template_loading = true
13 14  
14 15 # Enable serving of images, stylesheets, and javascripts from an asset server
15 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 19 # config.action_mailer.raise_delivery_errors = false
... ...
config/environments/test.rb
... ... @@ -13,7 +13,10 @@ config.whiny_nils = true
13 13 config.action_controller.consider_all_requests_local = true
14 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 19 # Tell ActionMailer not to deliver emails to the real world.
17 20 # The :test delivery method accumulates sent emails in the
18 21 # ActionMailer::Base.deliveries array.
19   -config.action_mailer.delivery_method = :test
20 22 \ No newline at end of file
  23 +config.action_mailer.delivery_method = :test
... ...