3 ms·
> self.attribute = attribute in an ActiveRecord class when the left side is a field of a table and the right side is a variable That seems to be an example of
by masklinn 10y ago
> self.attribute = attribute in an ActiveRecord class when the left side is a field of a table and the right side is a variable
That seems to be an example of not using an implicit self.
> A different name for the variable fixes it
There's nothing to fix, it works just fine.