diff options
Diffstat (limited to 'railties/lib/generators/rails/plugin/templates')
-rw-r--r-- | railties/lib/generators/rails/plugin/templates/generators/%file_name%/%file_name%_generator.rb.tt | 2 | ||||
-rw-r--r-- | railties/lib/generators/rails/plugin/templates/lib/generators/%file_name%_generator.rb.tt | 5 | ||||
-rw-r--r-- | railties/lib/generators/rails/plugin/templates/lib/generators/USAGE.tt (renamed from railties/lib/generators/rails/plugin/templates/generators/%file_name%/USAGE.tt) | 0 | ||||
-rw-r--r-- | railties/lib/generators/rails/plugin/templates/lib/generators/templates/.empty_directory (renamed from railties/lib/generators/rails/plugin/templates/generators/%file_name%/templates/.empty_directory) | 0 |
4 files changed, 5 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/%file_name%_generator.rb.tt b/railties/lib/generators/rails/plugin/templates/generators/%file_name%/%file_name%_generator.rb.tt deleted file mode 100644 index 90aa557eeb..0000000000 --- a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/%file_name%_generator.rb.tt +++ /dev/null @@ -1,2 +0,0 @@ -class <%= class_name %>Generator < Rails::Generators::NamedBase -end diff --git a/railties/lib/generators/rails/plugin/templates/lib/generators/%file_name%_generator.rb.tt b/railties/lib/generators/rails/plugin/templates/lib/generators/%file_name%_generator.rb.tt new file mode 100644 index 0000000000..675f00043f --- /dev/null +++ b/railties/lib/generators/rails/plugin/templates/lib/generators/%file_name%_generator.rb.tt @@ -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 diff --git a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/USAGE.tt b/railties/lib/generators/rails/plugin/templates/lib/generators/USAGE.tt index ea9f4f12cc..ea9f4f12cc 100644 --- a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/USAGE.tt +++ b/railties/lib/generators/rails/plugin/templates/lib/generators/USAGE.tt diff --git a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/templates/.empty_directory b/railties/lib/generators/rails/plugin/templates/lib/generators/templates/.empty_directory index e69de29bb2..e69de29bb2 100644 --- a/railties/lib/generators/rails/plugin/templates/generators/%file_name%/templates/.empty_directory +++ b/railties/lib/generators/rails/plugin/templates/lib/generators/templates/.empty_directory |