diff --git a/app/lib/text_formatter.rb b/app/lib/text_formatter.rb index 1e12cad9a..cdd7b7fe2 100644 --- a/app/lib/text_formatter.rb +++ b/app/lib/text_formatter.rb @@ -22,7 +22,7 @@ class TextFormatter # @option options [Boolean] :with_rel_me # @option options [Array] :preloaded_accounts # @option options [Status] :quote - + def initialize(text, options = {}) @text = text @options = DEFAULT_OPTIONS.merge(options) @@ -167,4 +167,12 @@ class TextFormatter def preloaded_accounts? preloaded_accounts.present? end + + def quote + options[:quote] + end + + def quote? + quote.present? + end end