diff --git a/config/environment.rb b/config/environment.rb index 1665f6d..a3b4b88 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -44,6 +44,11 @@ Rails::Initializer.run do |config| # config.active_record.observers = :cacher, :garbage_collector # Make Active Record use UTC-base instead of local time # config.active_record.default_timezone = :utc + + config.action_controller.session = { + :session_key => '_tets_session', + :secret => '7372009258e02886ca36278257637a008959504400f6286cd09133f6e9131d23460dd77e289bf99b480a3b4d017be0578b59335ce6a1c74e3644e37514926009' + } # See Rails::Configuration for more options diff --git a/config/environments/development.rb b/config/environments/development.rb index 0589aa9..09a451f 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -8,14 +8,11 @@ config.cache_classes = false # Log error messages when you accidentally call methods on nil. config.whiny_nils = true -# Enable the breakpoint server that script/breakpointer connects to -config.breakpoint_server = true - # Show full error reports and disable caching config.action_controller.consider_all_requests_local = true +config.action_view.debug_rjs = true config.action_controller.perform_caching = false config.action_view.cache_template_extensions = false -config.action_view.debug_rjs = true # Don't care if the mailer can't send -config.action_mailer.raise_delivery_errors = false +config.action_mailer.raise_delivery_errors = false \ No newline at end of file diff --git a/config/environments/production.rb b/config/environments/production.rb index 5a4e2b1..91f541c 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -10,9 +10,10 @@ config.cache_classes = true # Full error reports are disabled and caching is turned on config.action_controller.consider_all_requests_local = false config.action_controller.perform_caching = true +config.action_view.cache_template_loading = true # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" -# Disable delivery errors if you bad email addresses should just be ignored +# Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false diff --git a/config/environments/test.rb b/config/environments/test.rb index f0689b9..58850a7 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -13,7 +13,10 @@ config.whiny_nils = true config.action_controller.consider_all_requests_local = true config.action_controller.perform_caching = false +# Disable request forgery protection in test environment +config.action_controller.allow_forgery_protection = false + # Tell ActionMailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. -config.action_mailer.delivery_method = :test \ No newline at end of file +config.action_mailer.delivery_method = :test -- libgit2 0.21.2