Class: Alchemy::Admin::BaseController

Inherits:
BaseController
  • Object
show all
Includes:
Locale, Userstamp
Defined in:
app/controllers/alchemy/admin/base_controller.rb

Instance Method Summary collapse

Methods included from Modules

included, #module_definition_for, register_module

Methods included from Alchemy::AbilityHelper

#current_ability

Methods included from ConfigurationMethods

#configuration, #multi_language?, #multi_site?, #prefix_locale?

Instance Method Details

#leaveObject



27
28
29
30
# File 'app/controllers/alchemy/admin/base_controller.rb', line 27

def leave
  authorize! :leave, :alchemy_admin
  render template: "/alchemy/admin/leave", layout: !request.xhr?
end