Class: Anoubis::Tenant::GroupLocale

Inherits:
Core::ApplicationRecord
  • Object
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

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 }