diff options
Diffstat (limited to 'railties/lib/rails/generators/rails/model_subclass/model_subclass_generator.rb')
-rw-r--r-- | railties/lib/rails/generators/rails/model_subclass/model_subclass_generator.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/model_subclass/model_subclass_generator.rb b/railties/lib/rails/generators/rails/model_subclass/model_subclass_generator.rb new file mode 100644 index 0000000000..4649709780 --- /dev/null +++ b/railties/lib/rails/generators/rails/model_subclass/model_subclass_generator.rb @@ -0,0 +1,11 @@ +module Rails + module Generators + class ModelSubclassGenerator < Base + desc "model_subclass is deprecated. Invoke model with --parent option instead." + + def say_deprecation_warn + say self.class.desc + end + end + end +end |