test
This commit is contained in:
parent
563d706886
commit
692406344b
@ -22,7 +22,7 @@ class TextFormatter
|
||||
# @option options [Boolean] :with_rel_me
|
||||
# @option options [Array<Account>] :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
|
||||
|
Loading…
Reference in New Issue
Block a user