Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expand path relative to __FILE__

  • Loading branch information...
commit eeb1afa20003050039eab7420003a775343754c1 1 parent 7e0aa35
@jeremy jeremy authored
View
2  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

0 comments on commit eeb1afa

Please sign in to comment.
Something went wrong with that request. Please try again.