Closed agrberg closed 5 years ago
module Foo
class Bar
include Cacheable
cacheable :foo
def foo
sleep 1
10
end
end
end
Will generate the following as soon as it is loaded NameError (wrong constant name Foo::BarCacher)
Source of the error is how Class#name
works and is used by Cacheable::MethodGenerator. method_interceptor_module_name
.
Closed by #8.
For example it will fail if used inside
Foo::Bar::BazController
. Detailed error report and stack trace to come.