Module: BennyCache::Base::ClassMethods
- Defined in:
- lib/benny_cache/base.rb
Instance Method Summary collapse
Instance Method Details
#benny_model_ns(ns) ⇒ Object
25 26 27 |
# File 'lib/benny_cache/base.rb', line 25 def benny_model_ns(ns) self.class_variable_set(:@@BENNY_MODEL_NS, ns.to_s) end |
#get_benny_model_ns ⇒ Object
:nodoc:
29 30 31 32 |
# File 'lib/benny_cache/base.rb', line 29 def get_benny_model_ns #:nodoc: ns = self.class_variable_defined?(:@@BENNY_MODEL_NS) ? self.class_variable_get(:@@BENNY_MODEL_NS) : self.to_s "Benny/#{ns}" end |