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
76 77 78 79 80 |
# File 'lib/rails_dictionary/acts_as_dictionary.rb', line 76 def delete_dicts_cache method_name = ::DictType.revert(self.dict_type_id) Rails.cache.delete("Dictionary.#{method_name}") return true end |