From ba7f6b87684a76957ab0b1c74f5e4970f4ae6aa0 Mon Sep 17 00:00:00 2001 From: Matchu Date: Sat, 2 Jul 2011 18:02:33 -0400 Subject: [PATCH] keep two caches of wardrobe, for those who have image mode and those who don't --- app/views/outfits/edit.html.haml | 2 +- config/environments/development.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/outfits/edit.html.haml b/app/views/outfits/edit.html.haml index 9e59e26b..b9757c76 100644 --- a/app/views/outfits/edit.html.haml +++ b/app/views/outfits/edit.html.haml @@ -1,5 +1,5 @@ - add_body_class 'fullscreen' -- cache do +- cache :action_suffix => "image_mode_#{can_use_image_mode?}" do %a#home-link{:href => "/"} %span Dress to Impress %h1#title Planning an outfit diff --git a/config/environments/development.rb b/config/environments/development.rb index d32c9e59..03ae1808 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,10 +16,11 @@ OpenneoImpressItems::Application.configure do # Don't care if the mailer can't send config.action_mailer.raise_delivery_errors = false - + config.active_support.deprecation = :log end LocalImpressHost = 'betanewimpress.openneo.net' RemoteImpressHost = 'beta.impress.openneo.net' +