test/fake_app/rails_app.rb in rambulance-0.5.0 vs test/fake_app/rails_app.rb in rambulance-0.6.0
- old
+ new
@@ -13,10 +13,11 @@
Rails.application.initialize!
# routes
Rails.application.routes.draw do
resources :users
+ resources :projects, only: :index
end
# custom exception class
class CustomException < StandardError; end
class ForbiddenException < StandardError; end
@@ -71,6 +72,15 @@
end
def edit
raise ForbiddenException
end
+end
+class ProjectsController < ApplicationController
+ if self.respond_to? :skip_before_action
+ skip_before_action :bad_filter
+ else
+ skip_filter :bad_filter
+ end
+
+ def index; end
end