Skip to content

Commit

Permalink
Merge branch 'sandboxws-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
exAspArk committed Oct 18, 2018
2 parents c8b379e + 8281a48 commit e4a449a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ sudo: false
language: ruby
rvm:
- 2.3.4
- 2.4.3
- 2.5.1
env:
- CI=true
before_install: gem install bundler -v 1.15.2
Expand Down
2 changes: 1 addition & 1 deletion lib/graphql/guard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def inline_type_guard(type)
GraphQL::Field.accepts_definitions(mask: GraphQL::Define.assign_metadata_key(:mask))
end

if GraphQL::Schema::Object.respond_to?(:accepts_definition) # GraphQL-Ruby version >= 1.8
if Object.const_defined?('GraphQL::Schema::Object') && GraphQL::Schema::Object.respond_to?(:accepts_definition) # GraphQL-Ruby version >= 1.8
GraphQL::Schema::Object.accepts_definition(:guard)
GraphQL::Schema::Field.accepts_definition(:guard)
GraphQL::Schema::Field.accepts_definition(:mask)
Expand Down

0 comments on commit e4a449a

Please sign in to comment.