Class: Anoubis::Tenant::MenuLocale
- Inherits:
-
Core::ApplicationRecord
- Object
- Core::ApplicationRecord
- Anoubis::Tenant::MenuLocale
- Defined in:
- app/models/anoubis/tenant/menu_locale.rb
Overview
Localization for Menu model. Model stores all translations for Menu model.
Instance Attribute Summary collapse
-
#locale ⇒ Locales
Reference to locale.
-
#menu ⇒ Menu
Reference to the Menu model.
-
#page_title ⇒ String
The menu's localized page title.
-
#short_title ⇒ String
The menu's localized short title.
-
#title ⇒ String
The menu's localized title.
Instance Attribute Details
#locale ⇒ Locales
Returns reference to locale.
26 |
# File 'app/models/anoubis/tenant/menu_locale.rb', line 26 enum locale: Anoubis::Core::Locales.enums |
#menu ⇒ Menu
Returns reference to the Menu model.
9 |
# File 'app/models/anoubis/tenant/menu_locale.rb', line 9 belongs_to :menu, :class_name => 'Anoubis::Tenant::Menu' |
#page_title ⇒ String
Returns the menu's localized page title. Uses in frontend application.
18 |
# File 'app/models/anoubis/tenant/menu_locale.rb', line 18 validates :page_title, presence: true, length: { minimum: 3, maximum: 200 } |
#short_title ⇒ String
Returns the menu's localized short title. Uses in frontend application.
22 |
# File 'app/models/anoubis/tenant/menu_locale.rb', line 22 validates :short_title, length: { maximum: 200 } |
#title ⇒ String
Returns the menu's localized title.
14 |
# File 'app/models/anoubis/tenant/menu_locale.rb', line 14 validates :title, presence: true, length: { minimum: 3, maximum: 100 } |