Closed gamov closed 9 years ago
I have a method defined this way:
def latest_duty_tax(cat, country_code=@country) … end memoize :latest_duty_tax
It works with ActiveSupport::Memoizable but triggers an exception with Memoist:
sidr.latest_duty_tax(cat, country_code, :reload) # => #ArgumentError: wrong number of arguments (3 for 2) #/app/services/shipping_item_data_retriever.rb:24:in `latest_duty_tax' #/.rvm/gems/ruby-1.9.3-p545@ector/gems/memoist-0.9.3/lib/memoist.rb:174:in `latest_duty_tax'
good one. need to look at this.
Good catch :+1:
just encountered the same issue with an optional Hash as the last argument. :+1:
I have a method defined this way:
It works with ActiveSupport::Memoizable but triggers an exception with Memoist: