RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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