title: Ruby on Rails - Security Notifications
body: <p>I'm working on a project with ROR framework and the gem "Devise" for the authentication.</p>
  
  <p>Actually i have 3 model of users :</p>
  
  <ul>
  <li>User</li>
  <li>Admin</li>
  <li>Company</li>
  </ul>
  
  <p>I would like to know if there is a way to get the user's account activities with the time and ip (i got it with devise):</p>
  
  <p>When the user login, logout, fail login, change password, unlock account etc ...</p>
  
  <p>Shall i build a new model : security_notifications which is associated with User model, and override devise Controllers to create the notification after every actions ? Or there is a better method ?</p>
  
  <p>Thanks,</p>