Remove old caching code from report model

This commit is contained in:
Neil Lalonde 2013-03-21 11:58:02 -04:00
parent 35ec6c6806
commit 38415f28da
1 changed files with 1 additions and 7 deletions

View File

@ -1,15 +1,10 @@
class Report
attr_accessor :type, :data, :cache
def self.cache_expiry
3600 # In seconds
end
attr_accessor :type, :data
def initialize(type)
@type = type
@data = nil
@cache = true
end
def as_json
@ -28,7 +23,6 @@ class Report
# Load the report
report = Report.new(type)
report.cache = false if opts[:cache] == false
send(report_method, report)
report
end