Module: IronBank::Cacheable
- Defined in:
- lib/iron_bank/cacheable.rb
Overview
Use the provided cache if present.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#reload ⇒ Object
7 8 9 10 11 |
# File 'lib/iron_bank/cacheable.rb', line 7 def reload remove_instance_vars @remote = self.class.find(id, force: true).remote self end |