Skip to content

Commit 0c981d6

Browse files
Merge pull request rails#54045 from jonathanhefner/generator-actions-log-remove-quiet-check
Remove redundant `quiet` check
2 parents 6911b00 + 087bad3 commit 0c981d6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

railties/lib/rails/generators/actions.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,10 @@ def readme(path)
445445

446446
private
447447
# Define log for backwards compatibility. If just one argument is sent,
448-
# invoke say, otherwise invoke say_status. Differently from say and
449-
# similarly to say_status, this method respects the quiet? option given.
448+
# invoke say, otherwise invoke say_status.
450449
def log(*args) # :doc:
451450
if args.size == 1
452-
say args.first.to_s unless options.quiet?
451+
say args.first.to_s
453452
else
454453
args << (behavior == :invoke ? :green : :red)
455454
say_status(*args)

0 commit comments

Comments
 (0)