Created
January 31, 2012 08:04
-
-
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.
This file contains 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 '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