yuki24 / artemis

Ruby GraphQL client on Rails that actually makes you more productive
MIT License
207 stars 14 forks source link

Do not attempt to read config/graphql.yml if it does not exist #47

Closed yuki24 closed 5 years ago

yuki24 commented 5 years ago

closes #45

This PR updates the 'graphql.client.load_config' initializer to not swallow exceptions thrown by the #config_for method. The rescue was added so that we can run the installer without config/graphql.yml. We could check the existence of the config, and when it's not there, skip the initialization.