lib/generators/voluntary/install/templates/app/controllers/application_controller.rb in voluntary-0.0.3 vs lib/generators/voluntary/install/templates/app/controllers/application_controller.rb in voluntary-0.1.0.rc1

- old
+ new

@@ -1,3 +1,7 @@ class ApplicationController < Voluntary::ApplicationController layout Proc.new { |controller| controller.request.xhr? ? 'facebox' : 'application' } + + def current_ability + @current_ability ||= super.merge(Application::Ability.new(current_user, controller_namespace: current_namespace)) + end end \ No newline at end of file