Class: Anoubis::Tenant::GroupLocale

Inherits:
Core::ApplicationRecord show all
Defined in:
app/models/anoubis/tenant/group_locale.rb

Overview

Localization for Group model. Model stores all translations for Group model.

Instance Attribute Summary collapse

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

#localeLocales

Returns reference to locale.

Returns:

  • (Locales)

    reference to locale



18
# File 'app/models/anoubis/tenant/group_locale.rb', line 18

enum locale: Anoubis::Core::Locales.enums

Returns reference to the Anoubis::Tenant::Group model.

Returns:



13
# File 'app/models/anoubis/tenant/group_locale.rb', line 13

belongs_to :group, :class_name => 'Anoubis::Tenant::Group'

#titleString

Returns the group’s localized title.

Returns:

  • (String)

    the group’s localized title



9
# File 'app/models/anoubis/tenant/group_locale.rb', line 9

validates :title, length: { minimum: 3, maximum: 100 }