lib/output_mode/formatters/show.rb in output_mode-1.7.0 vs lib/output_mode/formatters/show.rb in output_mode-1.7.1
- old
+ new
@@ -41,10 +41,10 @@
@objects.first
end
def template(value = nil)
@template = value unless value.nil?
- @template ? @template : (interactive? ? DEFAULT_ERB : NON_INTERACTIVE_ERB)
+ @template ? @template : (humanize? ? DEFAULT_ERB : NON_INTERACTIVE_ERB)
end
def scope(value = nil)
@scope = value unless value.nil?
@scope ? @scope : self