Class: Magick::AdminUI::StatsController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Magick::AdminUI::StatsController
- Includes:
- ActionController::RequestForgeryProtection, Authentication
- Defined in:
- app/controllers/magick/adminui/stats_controller.rb
Instance Method Summary collapse
Methods included from Authentication
Instance Method Details
#magick_admin_ui ⇒ Object
19 20 21 |
# File 'app/controllers/magick/adminui/stats_controller.rb', line 19 def magick_admin_ui Magick::AdminUI::Engine.routes.url_helpers end |
#show ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'app/controllers/magick/adminui/stats_controller.rb', line 23 def show feature_name = params[:id].to_s @feature = Magick.features[feature_name] unless @feature head :not_found return end @stats = Magick.feature_stats(feature_name.to_sym) || {} end |