From 853de2bd9ac572735fa6cf59fcf827e485a231c3 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Mon, 2 Jan 2012 22:04:38 -0200 Subject: Deprecate Rails::Plugin in favor of gems --- railties/lib/rails/plugin.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/plugin.rb b/railties/lib/rails/plugin.rb index 3e27688bb9..4c34eb331e 100644 --- a/railties/lib/rails/plugin.rb +++ b/railties/lib/rails/plugin.rb @@ -53,6 +53,7 @@ module Rails end def initialize(root) + ActiveSupport::Deprecation.warn "Plugins are deprecated and will be removed in Rails 4.0. Use gems instead or bundler with path or git dependencies." @name = File.basename(root).to_sym config.root = root end -- cgit v1.2.3