test
This commit is contained in:
parent
563d706886
commit
692406344b
@ -22,7 +22,7 @@ class TextFormatter
|
|||||||
# @option options [Boolean] :with_rel_me
|
# @option options [Boolean] :with_rel_me
|
||||||
# @option options [Array<Account>] :preloaded_accounts
|
# @option options [Array<Account>] :preloaded_accounts
|
||||||
# @option options [Status] :quote
|
# @option options [Status] :quote
|
||||||
|
|
||||||
def initialize(text, options = {})
|
def initialize(text, options = {})
|
||||||
@text = text
|
@text = text
|
||||||
@options = DEFAULT_OPTIONS.merge(options)
|
@options = DEFAULT_OPTIONS.merge(options)
|
||||||
@ -167,4 +167,12 @@ class TextFormatter
|
|||||||
def preloaded_accounts?
|
def preloaded_accounts?
|
||||||
preloaded_accounts.present?
|
preloaded_accounts.present?
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def quote
|
||||||
|
options[:quote]
|
||||||
|
end
|
||||||
|
|
||||||
|
def quote?
|
||||||
|
quote.present?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user