Is there a way to create aliases for instance variables (not talking about db alias attributes) other than assigning it to another instance var?
For ex:
@imavar
alias_attribute(@hesavar, @imavar)
You can alias getter methods instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With