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
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 |
#stats ⇒ Object
21 22 23 |
# File 'lib/fast_exists/engine.rb', line 21 def stats render json: FastExists.stats end |