提交 eeb1afa2 编写于 作者: J Jeremy Kemper

Expand path relative to __FILE__

上级 7e0aa35c
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册