From now on these static pages: `/privacy' `/conditions' `/accesibility' `/help/faq' `/welcome' have been moved to the DB and can be modified easily by any administrator in `/admin/site_customization/pages'
7 lines
262 B
Ruby
7 lines
262 B
Ruby
if SiteCustomization::Page.find_by_slug("faq").nil?
|
|
page = SiteCustomization::Page.new(slug: "faq", status: "published")
|
|
page.title = I18n.t("pages.help.faq.page.title")
|
|
page.content = "<p>#{I18n.t("pages.help.faq.page.description")}</p>"
|
|
page.save!
|
|
end
|