We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b359fc9 commit c437a55Copy full SHA for c437a55
lib/graphql/schema/warden.rb
@@ -38,8 +38,9 @@ class Schema
38
# @api private
39
class Warden
40
def self.from_context(context)
41
- context.warden # this might be a hash which won't respond to this
42
- rescue
+ context.warden || PassThruWarden
+ rescue NoMethodError
43
+ # this might be a hash which won't respond to #warden
44
PassThruWarden
45
end
46
0 commit comments