Skip to content

Commit

Permalink
fix renamed config struct
Browse files Browse the repository at this point in the history
  • Loading branch information
dmacvicar committed Oct 20, 2017
1 parent 3164e32 commit 73cb46b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class ApiConnect
class Error < Exception; end

def self.get(path, limit = 10)
config = Rails.configuration.x.api
config = Rails.configuration.x
uri_str = "#{config.api_host}/#{path}".gsub(' ', '%20')
uri_str = path if path.match(/^http/)
uri = URI.parse(uri_str)
Expand Down

0 comments on commit 73cb46b

Please sign in to comment.