title: How to track devise login and logout with public_activity gem in rails
body: <p>I want to track user login and logout activities. I am already using public_activity gem to track activities of other models in my application. </p>
  
  <p>Here is an example of project tracking in my app: (project.rb)</p>
  
  <pre><code>class Project &lt; ApplicationRecord
        include PublicActivity::Model
        tracked
  end
  </code></pre>
  
  <p>Now i want to track devise login and logout user activities via public_activity gem. How can i do that?</p>