Class: ApplicationController

Inherits:
Voluntary::ApplicationController show all
Defined in:
lib/generators/voluntary/install/templates/app/controllers/application_controller.rb,
lib/generators/voluntary/product_dummy/templates/app/controllers/application_controller.rb

Instance Method Summary collapse

Methods included from Voluntary::V1::BaseController

#parent, #voluntary_application_javascripts, #voluntary_application_stylesheets

Methods included from Applicat::Mvc::Controller

included

Instance Method Details

#current_abilityObject



4
5
6
# File 'lib/generators/voluntary/install/templates/app/controllers/application_controller.rb', line 4

def current_ability
  @current_ability ||= super.merge(Application::Ability.new(current_user, controller_namespace: current_namespace))
end