Skip to content

Instantly share code, notes, and snippets.

@toolmantim
Created May 10, 2012 13:34
Show Gist options
  • Select an option

  • Save toolmantim/2653025 to your computer and use it in GitHub Desktop.

Select an option

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
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
# ...
@hoffm
Copy link
Copy Markdown

hoffm commented Feb 7, 2013

Did you ever find a better way?

@audionerd
Copy link
Copy Markdown

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