Skip to content

Missing Requires for loading YAML outside of Rails Environment #228

@jonmchan

Description

@jonmchan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions