title: Downgrading rails project to Ruby 1.9.3 | amusing .to_json trouble
body: <p>Dear stackoverflow people,
  I want to downgrade a rails project so it can run on rails 3 without any problems. It worked before on the newest version of rails, but the office does not want to use this one. I have trouble with rewriting this particular line:</p>
  
  <pre><code>@results = @sessions.to_json(:include =&gt; [:orientations, :subtopics, :data_files, :participants, :formats, :comments =&gt; {:include =&gt; [:user =&gt; {:only =&gt; [:id, :name]}]}])
  </code></pre>
  
  <p>@sessions are of course a list of results. Is there anyone who knows how I can write an alternative for this that will also run on older versions of rails?</p>
  
  <p>Thanks in advance</p>
  
  <p>Kind regards</p>