RubyFlow The Ruby and Rails community linklog

Make Delegated Methods Private in Rails

Calling delegate in the private visibility scope of a class has no effect in Rails. Rails 6 has a way to allow making delegated methods private, but read on to see how this can be done in Rails 5.2 or earlier: https://nithinbekal.com/posts/rails-delegate/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in