RubyMoney / money-rails

Integration of RubyMoney - Money with Rails
MIT License
1.8k stars 387 forks source link

Allow monetizing methods with kwargs #670

Closed c960657 closed 9 months ago

c960657 commented 1 year ago

monetize works for methods with positional arguments, i.e. def foo_cents(bar).

Add support for keyword arguments, i.e. def foo_cents(bar:).

c960657 commented 10 months ago

@sunny Any plans on merging this? :-)

sunny commented 10 months ago

I don’t have merge rights, so can’t help you there.

To help this along you could:

c960657 commented 10 months ago

I have also fixed Ruby 2.x compatibility. The few extra lines of code can easily be removed when support for Ruby 2.x is dropped.

c960657 commented 9 months ago

@semmons99 Any interest in merging this? :-)

semmons99 commented 9 months ago

sure thing. done.