Class: ActiveSupport::Cache::DatabaseStore::Model
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ActiveSupport::Cache::DatabaseStore::Model
- Defined in:
- lib/active_support/cache/database_store/model.rb
Class Method Summary collapse
Class Method Details
.namespaced(namespace) ⇒ Object
17 18 19 |
# File 'lib/active_support/cache/database_store/model.rb', line 17 def self.namespaced(namespace) where(arel_table[:key].matches("#{namespace}:%")) end |
.truncate! ⇒ Object
9 10 11 |
# File 'lib/active_support/cache/database_store/model.rb', line 9 def self.truncate! connection.truncate(table_name) end |