Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Expand path relative to __FILE__

  • Loading branch information...
commit eeb1afa20003050039eab7420003a775343754c1 1 parent 7e0aa35
Jeremy Kemper jeremy authored
2  railties/lib/rails/generators/rails/generator/templates/%file_name%_generator.rb.tt
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.