1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

parenthesize the arguments with splat

to make sure we're not calling the :* operator
This commit is contained in:
Akira Matsuda 2011-05-18 20:53:39 +09:00
parent 9aa10a79f9
commit 32b9cefb63
2 changed files with 4 additions and 4 deletions

View file

@ -522,9 +522,9 @@ module Rails
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|

View file

@ -278,7 +278,7 @@ module Rails
say args.first.to_s unless options.quiet?
else
args << (self.behavior == :invoke ? :green : :red)
say_status *args
say_status(*args)
end
end