Module: RailsDictionary::ActsAsDictionary
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/rails_dictionary/acts_as_dictionary.rb
Instance Method Summary collapse
-
#delete_dicts_cache ⇒ Object
End class_method.
Instance Method Details
#delete_dicts_cache ⇒ Object
End class_method
105 106 107 108 109 |
# File 'lib/rails_dictionary/acts_as_dictionary.rb', line 105 def delete_dicts_cache method_name = ::DictType.revert(self.dict_type_id) Rails.cache.delete(self.class.dict_cache_key(method_name)) return true end |