Method: AdminAssistant::Index::RecordFinder#optimized_total_entries

Defined in:
lib/admin_assistant/index.rb

#optimized_total_entriesObject



122
123
124
125
126
127
128
# File 'lib/admin_assistant/index.rb', line 122

def optimized_total_entries
  if settings.total_entries
    settings.total_entries.call
  elsif caching_total_entries?
    Rails.cache.read total_entries_cache_key
  end
end