I don’t know if the subject makes sense, but what I want is to do
certain actions before a record is created, deleted, or updated, and
some other after a successful insert/delete/update.
class School < ActiveRecord::Base
call the default code that handles this function in Rails
if successful, do more stuff
I know I can do it in the controller, that’s pretty easy, but the tasks
I want to do involve updating some records on the database, so the code
should belong in the model, I think.
I’m sure this must be possible, but how?
Thanks in advance!