From e1505a914ad546354c440f31713520957dc300ff Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 18 Apr 2012 15:13:09 +0200 Subject: [PATCH] Removed debugging messages. --- app/models/application_model.rb | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 89a166874..7012f1a08 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -8,24 +8,17 @@ class ApplicationModel < ActiveRecord::Base if o.respond_to?('cache_delete') then o.cache_delete end end def cache_delete -# puts 'cache_delete', self.inspect - puts 'cache_delete', self.id +# puts 'cache_delete', self.id key = self.class.to_s + '::' + self.id.to_s - puts key Rails.cache.delete( key.to_s ) end def self.cache_set(data_id, data) -# puts 'cache_set', self.inspect -# puts 'cache_set', self.to_s - puts 'cache_set', data_id +# puts 'cache_set', data_id key = self.to_s + '::' + data_id.to_s - puts key Rails.cache.write( key.to_s, data) -# @@cache[self.to_s][data_id] = data end def self.cache_get(data_id) - puts 'cache_get', data_id -# puts 'cache_get', self.inspect +# puts 'cache_get', data_id key = self.to_s + '::' + data_id.to_s Rails.cache.read( key.to_s ) end