Class: FastExists::DashboardController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- FastExists::DashboardController
- Defined in:
- lib/fast_exists/engine.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
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 |
#stats ⇒ Object
16 17 18 |
# File 'lib/fast_exists/engine.rb', line 16 def stats render json: FastExists.stats end |