Class: Anoubis::Tenant::MenuLocale
- Inherits:
-
Core::ApplicationRecord
- Object
- ActiveRecord::Base
- Core::ApplicationRecord
- Anoubis::Tenant::MenuLocale
- Defined in:
- app/models/anoubis/tenant/menu_locale.rb
Overview
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.
Attributes inherited from Core::ApplicationRecord
#can_delete, #can_edit, #can_new, #created_at, #current_user, #need_refresh, #redis, #sys_title, #updated_at
Method Summary
Methods inherited from Core::ApplicationRecord
#after_initialize_core_anubis_model, #can_destroy?, #current_locale, #current_locale=, #default_locale, #get_locale, #get_locale_field, get_where, #is_field_localized, #new_uuid, redis, #redis_prefix, redis_prefix, #set_locale_field
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 Anoubis::Tenant::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 } |