Module: SmartCacheTenant::ModelCallbacks
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/smart_cache_tenant/model_callbacks.rb
Instance Method Summary collapse
Instance Method Details
#smart_cache_bump! ⇒ Object
29 30 31 |
# File 'lib/smart_cache_tenant/model_callbacks.rb', line 29 def smart_cache_bump! self.class.smart_cache_bump!(try(SmartCacheTenant.config.tenant_column)) end |
#smart_cached_version ⇒ Object
33 34 35 |
# File 'lib/smart_cache_tenant/model_callbacks.rb', line 33 def smart_cached_version self.class.smart_cached_version(try(SmartCacheTenant.config.tenant_column)) end |