Class: FastExists::DashboardController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
lib/fast_exists/engine.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



10
11
12
13
14
# File 'lib/fast_exists/engine.rb', line 10

def index
  @stats = FastExists.stats
  @advisor = FastExists::Optimizer::AiAdvisor.analyze
  render html: dashboard_html.html_safe
end

#statsObject



16
17
18
# File 'lib/fast_exists/engine.rb', line 16

def stats
  render json: FastExists.stats
end