Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Requires for loading YAML outside of Rails Environment #228

Open
jonmchan opened this issue Jul 2, 2020 · 0 comments
Open

Missing Requires for loading YAML outside of Rails Environment #228

jonmchan opened this issue Jul 2, 2020 · 0 comments

Comments

@jonmchan
Copy link

jonmchan commented Jul 2, 2020

I'm trying to use couchrest_model in a sinatra app and the autoload couchdb.yml functionality is crashing the application because YAML is not loaded.

Simply adding a require yaml should fix this issue in the following file:

YAML::load(ERB.new(IO.read(file)).result).symbolize_keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant