Quick best practices question ...
I have a number of models with a user_id attribute
I am using the acts_as_authenticated plugin which lets you use
something like current_user to extract the current user from the
session. I have used this in my controllers successfully.
Would it be "wrong" to use this as a model validation? How would I
make this accessible to the model? I can't seem to get it to work from
within a model.
I'd like to write something that checks every model update, and
verifies ownership (previous owner is current owner)
Thanks in advance for your help