lib/aqila/cache.rb in aqila-cache-0.1.0 vs lib/aqila/cache.rb in aqila-cache-0.2.0
- old
+ new
@@ -5,11 +5,17 @@
module Aqila
module Cache
class Error < StandardError; end
- def self.configure_model
- yield(Aqila::Cache::TableLastChange)
+ require 'aqila/cache/configuration'
+
+ def self.configuration
+ @configuration ||= Configuration.new
+ end
+
+ def self.configure
+ yield(configuration)
end
require 'aqila/cache/table_last_change'
require 'aqila/cache/methods'
require 'aqila/cache/callbacks'