Improved code layout.

This commit is contained in:
Martin Edenhofer 2012-05-06 22:47:06 +02:00
parent b026113a34
commit 00cc1ff6ce

View file

@ -15,7 +15,7 @@ class ApplicationModel < ActiveRecord::Base
def self.cache_set(data_id, data) def self.cache_set(data_id, data)
# puts 'cache_set', data_id # puts 'cache_set', data_id
key = self.to_s + '::' + data_id.to_s key = self.to_s + '::' + data_id.to_s
Rails.cache.write( key.to_s, data) Rails.cache.write( key.to_s, data )
end end
def self.cache_get(data_id) def self.cache_get(data_id)
# puts 'cache_get', data_id # puts 'cache_get', data_id