Question: I am using a observer to separate the unrelated logic from the model. 

The scenario is, suppose a record is created or updated in a model, then how can we get that record object in the model's observer's after\_save method?

Answer: 
Try like this in your observer...

```

def after_save(model)
  ---
  # model will the current model object
  ---
end

```
This observer method is going to be deprecated..
use this  

`Model << ActiveXXXXX  

after_save :after_save_callback`

def after\_save\_callback
-------------------------

#things to be done
------------------

end