aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2012-01-02 22:04:38 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2012-01-03 10:37:47 -0200
commit853de2bd9ac572735fa6cf59fcf827e485a231c3 (patch)
treedca89e17f2f6e8dabe0571ddf50b97e27dca59a1
parent2535898acfb5ebbb8933be48ce4dd536046cf272 (diff)
downloadrails-853de2bd9ac572735fa6cf59fcf827e485a231c3.tar.gz
rails-853de2bd9ac572735fa6cf59fcf827e485a231c3.tar.bz2
rails-853de2bd9ac572735fa6cf59fcf827e485a231c3.zip
Deprecate Rails::Plugin in favor of gems
-rw-r--r--railties/CHANGELOG.md2
-rw-r--r--railties/guides/source/3_2_release_notes.textile2
-rw-r--r--railties/lib/rails/plugin.rb1
3 files changed, 5 insertions, 0 deletions
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 <tt>config.reload_classes_only_on_change</tt> to false.
* New applications get a flag <tt>config.active_record.auto_explain_threshold_in_seconds</tt> in the environments configuration files. With a value of <tt>0.5</tt> in <tt>development.rb</tt> and commented out in <tt>production.rb</tt>. No mention in <tt>test.rb</tt>.
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