spec/dummy/app/controllers/application_controller.rb in flyboy-1.0.7 vs spec/dummy/app/controllers/application_controller.rb in flyboy-1.1.0
- old
+ new
@@ -1,5 +1,9 @@
class ApplicationController < ActionController::Base
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
protect_from_forgery with: :exception
+
+ def current_ability
+ Ability.new
+ end
end