Class: Anoubis::Tenant::GroupLocale
- Inherits:
-
Core::ApplicationRecord
- Object
- ActiveRecord::Base
- Core::ApplicationRecord
- Anoubis::Tenant::GroupLocale
- Defined in:
- app/models/anoubis/tenant/group_locale.rb
Overview
Instance Attribute Summary collapse
-
#locale ⇒ Locales
Reference to locale.
-
#menu ⇒ Group
Reference to the Group model.
-
#title ⇒ String
The group’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.
18 |
# File 'app/models/anoubis/tenant/group_locale.rb', line 18 enum locale: Anoubis::Core::Locales.enums |
#menu ⇒ Group
Returns reference to the Anoubis::Tenant::Group model.
13 |
# File 'app/models/anoubis/tenant/group_locale.rb', line 13 belongs_to :group, :class_name => 'Anoubis::Tenant::Group' |
#title ⇒ String
Returns the group’s localized title.
9 |
# File 'app/models/anoubis/tenant/group_locale.rb', line 9 validates :title, length: { minimum: 3, maximum: 100 } |