diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-15 11:33:36 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-15 11:33:36 +0200 |
commit | 0702e04e0d671227259f71f614adfe3f35f88b48 (patch) | |
tree | 9f3c34075fbb4ed4c227f66fd3168de86f8ab1f4 /railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt | |
parent | a06c825b464758a0c22f8b089a596e46f1bba5cb (diff) | |
download | rails-0702e04e0d671227259f71f614adfe3f35f88b48.tar.gz rails-0702e04e0d671227259f71f614adfe3f35f88b48.tar.bz2 rails-0702e04e0d671227259f71f614adfe3f35f88b48.zip |
Refactored some generators to make use of improved invocations on thor.
Diffstat (limited to 'railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt')
-rw-r--r-- | railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt b/railties/lib/generators/rails/generator/templates/%file_name%_generator.rb.tt new file mode 100644 index 0000000000..675f00043f --- /dev/null +++ b/railties/lib/generators/rails/generator/templates/%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 |