提交 32b9cefb 编写于 作者: A Akira Matsuda

parenthesize the arguments with splat

to make sure we're not calling the :* operator
上级 9aa10a79
......@@ -522,9 +522,9 @@ def load_seed
end
initializer :append_assets_path do |app|
app.config.assets.paths.unshift *paths["vendor/assets"].existent
app.config.assets.paths.unshift *paths["lib/assets"].existent
app.config.assets.paths.unshift *paths["app/assets"].existent
app.config.assets.paths.unshift(*paths["vendor/assets"].existent)
app.config.assets.paths.unshift(*paths["lib/assets"].existent)
app.config.assets.paths.unshift(*paths["app/assets"].existent)
end
initializer :prepend_helpers_path do |app|
......
......@@ -278,7 +278,7 @@ def log(*args)
say args.first.to_s unless options.quiet?
else
args << (self.behavior == :invoke ? :green : :red)
say_status *args
say_status(*args)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册