Skip to content

Instantly share code, notes, and snippets.

@matthewrudy
Created January 31, 2012 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewrudy/1709421 to your computer and use it in GitHub Desktop.
Save matthewrudy/1709421 to your computer and use it in GitHub Desktop.
initializer for rails 3.2 to ignore "plugins are deprecated" warnings on heroku.
require 'rails/plugin'
module Rails
class Plugin
def initialize(root)
# ActiveSupport::Deprecation.warn "You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released"
@name = File.basename(root).to_sym
config.root = root
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment