Skip to content

NameError: uninitialized constant Monetize::Collection::Forwardable #44

@davidsklar

Description

@davidsklar

After gem install monetize, a require 'monetize' gives me:

NameError: uninitialized constant Monetize::Collection::Forwardable
    from /usr/local/lib/ruby/gems/2.2.0/gems/monetize-1.2.0/lib/collection.rb:7:in `<class:Collection>'
        .....

This looks to be a similar situation as, e.g. resque/resque#1128

If I do require 'forwardable' before I require monetize, then it works fine.

So perhaps change (as is suggested in the resque comment) "extend Forwardable" to "extend ::Forwardable" ?

If it matters, this is with monetize 1.2.0 and ruby -v says "ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]"

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