Module: ActAsCached::CacheOptions::ClassMethods
- Defined in:
- lib/act_as_cached/cache_options.rb
Instance Method Summary collapse
Instance Method Details
#logger ⇒ Object
24 25 26 |
# File 'lib/act_as_cached/cache_options.rb', line 24 def logger [:logger] || ActAsCached.logger end |
#name ⇒ Object
12 13 14 |
# File 'lib/act_as_cached/cache_options.rb', line 12 def name @name ||= klass.name end |
#options ⇒ Object
8 9 10 |
# File 'lib/act_as_cached/cache_options.rb', line 8 def @options ||= . end |
#prefix ⇒ Object
16 17 18 |
# File 'lib/act_as_cached/cache_options.rb', line 16 def prefix [:prefix] || ActAsCached.prefix end |
#store ⇒ Object
20 21 22 |
# File 'lib/act_as_cached/cache_options.rb', line 20 def store [:cache_store] || ActAsCached.cache_store end |
#time ⇒ Object
28 29 30 |
# File 'lib/act_as_cached/cache_options.rb', line 28 def time [:expires_time] || ActAsCached.expires_time end |