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/CHANGELOG.md | 2 ++ railties/guides/source/3_2_release_notes.textile | 2 ++ railties/lib/rails/plugin.rb | 1 + 3 files changed, 5 insertions(+) diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index 490dfd500d..8aea017a6d 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -1,5 +1,7 @@ ## Rails 3.2.0 (unreleased) ## +* Rails::Plugin is deprecated and will be removed in Rails 4.0. Instead of adding plugins to vendor/plugins use gems or bundler with path or git dependencies. *Santiago Pastorino* + * Guides are available as a single .mobi for the Kindle and free Kindle readers apps. *Michael Pearson & Xavier Noria* * Allow scaffold/model/migration generators to accept a "index" and "uniq" modifiers, as in: "tracking_id:integer:uniq" in order to generate (unique) indexes. Some types also accept custom options, for instance, you can specify the precision and scale for decimals as "price:decimal{7,2}". *Dmitrii Samoilov* diff --git a/railties/guides/source/3_2_release_notes.textile b/railties/guides/source/3_2_release_notes.textile index a4d5ed9116..8dc4525807 100644 --- a/railties/guides/source/3_2_release_notes.textile +++ b/railties/guides/source/3_2_release_notes.textile @@ -67,6 +67,8 @@ When running a multi-user, multi-account application, it's a great help to be ab h3. Railties +* Rails::Plugin is deprecated and will be removed in Rails 4.0. Instead of adding plugins to vendor/plugins use gems or bundler with path or git dependencies. + * Speed up development by only reloading classes if dependencies files changed. This can be turned off by setting config.reload_classes_only_on_change to false. * New applications get a flag config.active_record.auto_explain_threshold_in_seconds in the environments configuration files. With a value of 0.5 in development.rb and commented out in production.rb. No mention in test.rb. 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