title: MiniMagick not working in production
body: <p>I am using MiniMagick gem to crop images and then saving them with mongoid paperclip. Everything seems to be working perfectly in development but in production I am getting the error "ActionView::Template::Error (uninitialized constant <em>Model Name</em>::MiniMagick)". these are the lines giving the error inside the model:</p>
  
  <pre><code>def profile_geometry
    img = MiniMagick::Image.open(avatar.path)
    @geometry = {:width =&gt; img[:width], :height =&gt; img[:height] }
  end
  </code></pre>
  
  <p>Any help would be hugely appreciated.</p>
  
  <p>EDIT:
  Gemfile</p>
  
  <pre><code>gem 'rails', '4.0.0'
  
  gem 'sass-rails', '~&gt; 4.0.0'
  gem 'uglifier', '&gt;= 1.3.0'
  gem 'coffee-rails', '~&gt; 4.0.0'
  gem 'jbuilder', '~&gt; 1.2'
  gem 'twitter-bootstrap-rails'
  gem 'quiet_assets'
  
  group :development do
      gem 'awesome_print'
  end
  
  group :production do 
      gem 'unicorn'
  end
  
  group :doc do
    gem 'sdoc', require: false
  end
  
  gem 'mini_magick'
  gem 'execjs'
  gem 'therubyracer'
  gem "mongoid", "~&gt; 4.0.0.beta1"
  gem "devise"
  gem "mongoid-paperclip", :require =&gt; "mongoid_paperclip"
  gem "cancan"
  gem "simple-rss"
  gem 'capistrano'
  gem 'rvm-capistrano'
  
  gem 'stripe'
  </code></pre>