Permalink
Browse files

Added defined? @mute to get rid of "instance variable @mute not initi…

…alized" when running rails3 railties tests.
  • Loading branch information...
1 parent 23b32a2 commit f2a105e376ac979be60171755014ba4d3ceceec8 @konieczkow committed May 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/thor/shell/basic.rb
View
@@ -23,7 +23,7 @@ def mute
# Check if base is muted
#
def mute?
- @mute
+ defined?(@mute) ? @mute : false
end
# Sets the output padding, not allowing less than zero values.

0 comments on commit f2a105e

Please sign in to comment.