This gem prevents images hitting Rails.
Why bother? When developing, sometimes it's handy to import production data without images (especially if there are lots of them hosted on S3). If you view a page containing 100 comments, most of the logs will be errors about missing avatars.
Add this line to your application's Gemfile:
gem 'rack-image_silencer', :group => :development
And then execute:
Or install it yourself as:
$ gem install rack-image_silencer
Including it in your Gemfile automatically loads it as rack middleware into your Rails app.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request