提交 02c3c9df 编写于 作者: C Carl Lerche

Fix the application.rb generator

上级 25b8e996
......@@ -104,7 +104,7 @@ def add_source(source, options={})
# file in config/environments.
#
def environment(data=nil, options={}, &block)
sentinel = "Rails::Initializer.run do |config|"
sentinel = /class [a-z_:]+ < Rails::Application/i
data = block.call if !data && block_given?
in_root do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册