diff options
Diffstat (limited to 'railties/lib/generators/rails/generator/templates/generator.rb')
-rw-r--r-- | railties/lib/generators/rails/generator/templates/generator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/generator/templates/generator.rb b/railties/lib/generators/rails/generator/templates/generator.rb new file mode 100644 index 0000000000..675f00043f --- /dev/null +++ b/railties/lib/generators/rails/generator/templates/generator.rb @@ -0,0 +1,5 @@ +class <%= class_name %>Generator < Rails::Generators::NamedBase + def self.source_root + @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) + end +end |