I have come across a problem, documented in the links below, when extending Fowardable in an app I am porting to Rails 4.2.1.
Any class that extends Forwardable (which used to work) now gives this error:
ArgumentError: wrong number of arguments calling
instance_delegate (2 for 1)
extended at /Users/steve/.rvm/gems/jruby-1.7.13/gems/activemodel-4.2.1/lib/active_model/naming.rb:220
extend at org/jruby/RubyKernel.java:2200
The links have some suggestions which work in most cases. But I’m surprised there would be a conflict between those classes, both are in Rails core right? Am I the only person seeing this?
Thanks in advance for any help.