Permalink
Browse files

Expand path relative to __FILE__

  • Loading branch information...
1 parent 7e0aa35 commit eeb1afa20003050039eab7420003a775343754c1 @jeremy jeremy committed Nov 25, 2009
@@ -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.