uploadcare / uploadcare-rails

Rails API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
https://uploadcare.com
MIT License
58 stars 70 forks source link

Fix for config generator failling #54

Closed brandoncordell closed 7 years ago

brandoncordell commented 7 years ago

Rails.env returns a string while the default config uses symbols as keys

Fixes #53

vizvamitra commented 7 years ago

@brandoncordell if the config file is in it's place then it will be loaded with string keys and you'll get a "config is empty or not given at all" error.

@dmitry-mukhin I think we need to make the default config to contain strings instead of symbols. Also we should write a test that will confirm that the initializer is working correctly in both cases

dmitry-mukhin commented 7 years ago

agree

vizvamitra commented 7 years ago

Fixed in #56