diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-24 18:41:30 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-11-28 12:50:09 -0800 |
commit | eeb1afa20003050039eab7420003a775343754c1 (patch) | |
tree | 572c0334fe5c71b2770ae42eedf0fb6673b7905f /railties/lib | |
parent | 7e0aa35c20f06fd9ef245155e30e81cfb38bad05 (diff) | |
download | rails-eeb1afa20003050039eab7420003a775343754c1.tar.gz rails-eeb1afa20003050039eab7420003a775343754c1.tar.bz2 rails-eeb1afa20003050039eab7420003a775343754c1.zip |
Expand path relative to __FILE__
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt b/railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt index 675f00043f..d8757460e4 100644 --- a/railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt +++ b/railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt @@ -1,5 +1,5 @@ class <%= class_name %>Generator < Rails::Generators::NamedBase def self.source_root - @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) + @source_root ||= File.expand_path('../templates', __FILE__) end end |