hashie/hashie

Including MethodAccessWithOverride in Hashie::Mash breaks dup method

Opened this issue · 0 comments

[1] pry(main)> require "hashie"
=> true
[2] pry(main)> class BadMash < Hashie::Mash; include Hashie::Extensions::MethodAccessWithOverride; end
=> BadMash
[3] pry(main)> BadMash.new.dup
ArgumentError: wrong number of arguments (given 2, expected 0..1)
from /home/bsmith/.rbenv/versions/3.1.3/lib/ruby/gems/3.1.0/gems/hashie-5.0.0/lib/hashie/extensions/method_access.rb:258:in `initialize'