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

@ -522,9 +522,9 @@ def load_seed
end end
initializer :append_assets_path do |app| initializer :append_assets_path do |app|
app.config.assets.paths.unshift *paths["vendor/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["lib/assets"].existent)
app.config.assets.paths.unshift *paths["app/assets"].existent app.config.assets.paths.unshift(*paths["app/assets"].existent)
end end
initializer :prepend_helpers_path do |app| initializer :prepend_helpers_path do |app|

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