Created
May 10, 2012 13:34
-
-
Save toolmantim/2653025 to your computer and use it in GitHub Desktop.
There's gotta be a better way to silence the Rails 3.2 vendor/plugin deprecation warnings from Heroku's plugin injection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require File.expand_path('../boot', __FILE__) | |
| require 'rails/all' | |
| # Silence deprecation warnings until Heroku stops injecting plugins into | |
| # vendor/plugins | |
| if Rails.env.production? | |
| ActiveSupport::Deprecation.silenced = true | |
| end | |
| # ... |
Adding Heroku’s rails_12factor gem to my Gemfile solved this problem for me on Rails 3.2
For reference: http://stackoverflow.com/questions/9027403/rails-2-3-style-plugins-and-deprecation-warnings-running-task-in-heroku
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever find a better way?