3 ms·
This technique is useful in Rails if you need to assign instance variables that have the name of a model. Here’s an example: https://github.com/rubymonolith/de
by bradgessler 3y ago
This technique is useful in Rails if you need to assign instance variables that have the name of a model.
Here’s an example: https://github.com/rubymonolith/demo/blob/main/app/controllers/concerns/assignable.rb#L13 https://github.com/rubymonolith/demo/blob/main/app/controlle...