Class: Magick::AdminUI::StatsController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ActionController::RequestForgeryProtection
Defined in:
app/controllers/magick/adminui/stats_controller.rb

Instance Method Summary collapse

Instance Method Details

#magick_admin_uiObject



14
15
16
# File 'app/controllers/magick/adminui/stats_controller.rb', line 14

def magick_admin_ui
  Magick::AdminUI::Engine.routes.url_helpers
end

#showObject



18
19
20
21
22
23
24
25
26
# File 'app/controllers/magick/adminui/stats_controller.rb', line 18

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