lib/cantango/ability/cache/reader.rb in cantango-0.9.3.2 vs lib/cantango/ability/cache/reader.rb in cantango-0.9.4
- old
+ new
@@ -1,15 +1,18 @@
module CanTango
class Ability
class Cache
class Reader
+ include CanTango::Helpers::Debug
+
attr_reader :cache
def initialize cache
@cache = cache
end
def prepared_rules
+ debug "reading rules from cache: #{cache.key}"
cache.compile_on? ? compiler.decompile!(loaded_rules) : loaded_rules
end
protected