Skip to content

Commit

Permalink
Fix initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
amiedes committed May 11, 2017
1 parent cad66ea commit 3c7f60d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/initializers/graphql.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
api_config = YAML.load_file('./config/api.yml')
API_TYPE_DEFINITIONS = GraphQL::ApiTypesCreator::parse_api_config_file(api_config)
if ActiveRecord::Base.connection.tables.any?
api_config = YAML.load_file('./config/api.yml')
API_TYPE_DEFINITIONS = GraphQL::ApiTypesCreator::parse_api_config_file(api_config)
end

0 comments on commit 3c7f60d

Please sign in to comment.