Make Delegated Methods Private in Rails
14-Feb-2019 2679
Recently, I came across some of my old code that uses Rails’ delegate method. Take a look at the following example, where I’m delegating a couple of methods to an instance variable, but want to make them private.
Make Delegated Methods Private in Rails #ruby #rubydeveloper #rubyonrails #Delegated #Methods #Private #Rails https://rubyonrails.ba/link/make-delegated-methods-private-in-rails