Hi all,
I actually raised this as a PR (https://github.com/rails/rails/pull/14454) but thought I would bring it up here anyway.
Summary:
Add an additional option :prefixing_with for delegate that allows prefixed delegations to be declared whilst ensuring that they are greppable/searchable using the name of the method they are defining i.e:
delegate :foo_bar, :prefixing_with => :foo
I can change the name of the option if it’s bothering anyone.
Thoughts?
Cheers,
M