Skip to content

Commit

Permalink
Fixes an issue where ExceptionsApp prevents Rails from booting up
Browse files Browse the repository at this point in the history
fixes #49
  • Loading branch information
yuki24 committed Jun 4, 2019
1 parent f6631f7 commit 89f8f9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rambulance/exceptions_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ module Rambulance
class ExceptionsApp < ActionController::Base
layout :layout_name

if self.respond_to?(:skip_forgery_protection)
begin
skip_forgery_protection
rescue
# ignore errors from #skip_forgery_protection since older Rails adds this method later.
end

def self.call(env)
Expand Down

0 comments on commit 89f8f9f

Please sign in to comment.