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]"
After
gem install monetize, arequire 'monetize'gives me: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]"