mirror of https://github.com/rails/rails
be258503ac
This is a continuation of https://github.com/rails/rails/pull/46875 The behavior of looking up the class method when `to: :class` is passed is a bit error prone because it silently degrades. By passing the expected owner of the delegated method, we can be more strict, and also generate a delegator in a module rather than having to do it at inclusion time. I made this argument private API because we want it in Rails, but I'm worried it might be a bit too sharp for public API. I can be convinced otherwise though. |
||
---|---|---|
.. | ||
action_cable | ||
rails/generators | ||
action_cable.rb |