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