From 2e8d0153cd6bed87fa55255ef11fda7152b2bcaf Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Fri, 14 Dec 2018 14:27:26 +0100 Subject: Pass on arguments passed to the FeatureConstrainer All arguments passed to the `FeatureConstrainer` will be passed on to the `Feature.enabled?` check. --- config/routes/api.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/routes/api.rb b/config/routes/api.rb index 5398e726398..3719b7d3a1e 100644 --- a/config/routes/api.rb +++ b/config/routes/api.rb @@ -1,4 +1,4 @@ -constraints(::Constraints::FeatureConstrainer.new(:graphql, nil, true)) do +constraints(::Constraints::FeatureConstrainer.new(:graphql, default_enabled: true)) do post '/api/graphql', to: 'graphql#execute' mount GraphiQL::Rails::Engine, at: '/-/graphql-explorer', graphql_path: '/api/graphql' end -- cgit v1.2.1