instance method
log
Ruby on Rails 3.1.12
Since v3.0.20Signature
log(*args)
Define log for backwards compatibility. If just one argument is sent, invoke say, otherwise invoke say_status. Differently from say and similarly to say_status, this method respects the quiet? option given.
Parameters
-
argsrest
Source
# File railties/lib/rails/generators/actions.rb, line 276
def log(*args)
if args.size == 1
say args.first.to_s unless options.quiet?
else
args << (self.behavior == :invoke ? :green : :red)
say_status(*args)
end
end
Defined in railties/lib/rails/generators/actions.rb line 276
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions