Class: Anoubis::Tenant::SystemLocale
- Inherits:
-
Core::ApplicationRecord
- Object
- 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.
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] } |