diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-11-14 19:27:06 -0600 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-16 00:04:35 +0100 |
commit | dc1250265cdf1ae4ab2d61b5d0b1cf2aa2f8ba0e (patch) | |
tree | 4ef2bf29ad473da7877cfa14a8ab1bf78aba96df /railties/lib | |
parent | 73443329de6817b32ea0fa65889056c146181bca (diff) | |
download | rails-dc1250265cdf1ae4ab2d61b5d0b1cf2aa2f8ba0e.tar.gz rails-dc1250265cdf1ae4ab2d61b5d0b1cf2aa2f8ba0e.tar.bz2 rails-dc1250265cdf1ae4ab2d61b5d0b1cf2aa2f8ba0e.zip |
Deprecate plugin generator
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/plugin/plugin_generator.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb index 40ed2062d3..a3387b8a57 100644 --- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb @@ -1,3 +1,4 @@ + require 'rails/generators/rails/generator/generator_generator' module Rails @@ -5,6 +6,12 @@ module Rails class PluginGenerator < NamedBase class_option :tasks, :desc => "When supplied creates tasks base files." + def show_deprecation + return unless behavior == :invoke + message = "Plugin generator is depreacted, please use 'rails plugin new' command to generate plugin structure." + ActiveSupport::Deprecation.warn message + end + check_class_collision def create_root_files |