Method: AdminAssistant::Index::RecordFinder#total_entries_cache_key

Defined in:
lib/admin_assistant/index.rb

#total_entries_cache_keyObject



176
177
178
179
180
181
182
183
# File 'lib/admin_assistant/index.rb', line 176

def total_entries_cache_key
  key =
      "AdminAssistant::#{@index.admin_assistant.controller_class.name}_count"
  if conditions = @ar_query.to_hash[:conditions]
    key << conditions.gsub(/\W/, '_')
  end
  key
end