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'
8 lines
276 B
Ruby
8 lines
276 B
Ruby
if SiteCustomization::Page.find_by_slug("privacy").nil?
|
|
page = SiteCustomization::Page.new(slug: "privacy", status: "published")
|
|
page.print_content_flag = true
|
|
page.title = I18n.t("pages.privacy.title")
|
|
page.content = I18n.t("pages.privacy.subtitle")
|
|
page.save!
|
|
end
|