From 5f5b2eca864f21ab8e45a9401e6b01dd2494c21c Mon Sep 17 00:00:00 2001 From: Alexander Negoda Date: Mon, 30 Jul 2012 03:10:12 +0400 Subject: [PATCH] fix default_url_options for production mode --- config/application.rb | 2 +- config/environments/production.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index a2eebe3..3cfed02 100644 --- a/config/application.rb +++ b/config/application.rb @@ -19,7 +19,7 @@ module Photomix config.active_support.escape_html_entities_in_json = true config.assets.enabled = true config.assets.version = '1.0' - config.assets.precompile += %w( ajaxful_rating.css ) + # Configure sensitive parameters which will be filtered from the log file. config.filter_parameters += [:password, :password_confirmation] diff --git a/config/environments/production.rb b/config/environments/production.rb index 9106759..25689cf 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -46,10 +46,9 @@ Photomix::Application.configure do # config.action_controller.asset_host = "http://assets.example.com" # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) - config.assets.precompile += %w( front.js front_preloader.js ) - # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false + config.assets.precompile += %w( ajaxful_rating.css ) # Enable threaded mode # config.threadsafe! @@ -60,6 +59,7 @@ Photomix::Application.configure do # Send deprecation notices to registered listeners config.active_support.deprecation = :notify + set default_url_options[:host] = 'example.com' # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL)