Fix: 利用規約が表示できない問題 (#999)
This commit is contained in:
parent
a28c80f6e6
commit
1a77619150
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class REST::TermsOfServiceSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def content
|
def content
|
||||||
markdown.render(format(object.text, domain: Rails.configuration.x.local_domain))
|
markdown.render(object.text.gsub(/%{domain}/, Rails.configuration.x.local_domain))
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue