title: Good idea to access session in observer or not?
body: <p>I want to log user's actions in my Ruby on Rails application.</p>
  
  <p>So far, I have a model observer that inserts logs to the database after updates and creates. In order to store which user performed the action that was logged, I require access to the session but that is problematic.</p>
  
  <p>Firstly, it breaks the MVC model. Secondly, techniques range from the hackish to the outlandish, perhaps maybe even tying the implementation to the Mongrel server.</p>
  
  <p>What is the right approach to take?</p>