I’m trying to not save user IP addresses because that’s what someone wants.
I can’t use a callback because IP addresses are saved by directly modifying the database and not through Rails ActiveRecord.
I’m trying to override the User update_ip_address
method(s).
I’m doing this:
and this:
But it seems like my stuff isn’t getting loaded. I can’t call User.my_test
and when I call User.update_ip_address
my puts
arren’t happending.
My guess is that I have a file with the wrong name or I need to capitalize something or something else that is both trivial and impossible to figure out.