Skip to content

Commit 217e4d5

Browse files
committed
Do not change caller options
1 parent 40e6f7b commit 217e4d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/middleware/error.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Error < Base
1818

1919
def initialize(app, **options)
2020
super
21-
self.class.include(options.delete(:helpers)) if options[:helpers]
21+
self.class.include(options[:helpers]) if options[:helpers]
2222
end
2323

2424
def call!(env)

0 commit comments

Comments
 (0)