title: Sending information from image uploader to the model carrierwave
body: <p>So currently i have my table with a width column and a height column, </p>
  
  <pre><code>def store_dimensions
  if file &amp;&amp; model
    model.width, model.height = ::MiniMagick::Image.open(file.file[:dimensions])
   end
  end
  </code></pre>
  
  <p>I use this method to set the height and width so when in validation methods in the model i can validate that the dimensions are valid. </p>
  
  <p>I wondering if there was a better way to send params over to the model instead of persisting them to the database because after validation they arent used again.</p>
  
  <p>Ive tried to add</p>
  
  <p><code>attr_accessor :height, width</code></p>
  
  <p>to the uploader and the model then setting the variables in store dimensions method but cant retrieve them on the model end. </p>
  
  <p>If anyone has had any experience doing this could you shed some light thanks</p>