Class: Seo

Inherits:
ApplicationRecord show all
Defined in:
app/models/seo.rb

Overview

Restaurant SEO

Defined Under Namespace

Classes: Translation

Constant Summary collapse

ACCESSORS =
MyLocaleManager.available_locales.map do |l|
  [
    # for title
    "use_restaurant_name_as_title_#{l}".to_sym,

    # for description
    "use_restaurant_misc_as_description_#{l}".to_sym,
    "use_site_description_as_description_#{l}".to_sym,

    # for keywords
    "use_site_keywords_as_keywords_#{l}".to_sym,
  ]
end.flatten

Method Summary

Methods inherited from ApplicationRecord

sync_carrierwave_url