Module: RailsDictionary::ActsAsDictionary

Extended by:
ActiveSupport::Concern
Defined in:
lib/rails_dictionary/acts_as_dictionary.rb

Instance Method Summary collapse

Instance Method Details

#delete_dicts_cacheObject

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