Class: FastExists::DashboardController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



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

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

#statsObject



21
22
23
# File 'lib/fast_exists/engine.rb', line 21

def stats
  render json: FastExists.stats
end