Class LanguageCharacterFamily
In: app/models/language_character_family.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

   # File app/models/language_character_family.rb, line 5
5:   def to_label
6:     I18n.t("activerecord.attributes.language_character_family.#{language.iso_639_code}.#{family}")
7:   end

Protected Instance methods

[Source]

    # File app/models/language_character_family.rb, line 11
11:   def authorized_for_create?
12:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
13:   end

[Source]

    # File app/models/language_character_family.rb, line 19
19:   def authorized_for_destroy?
20:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
21:   end

[Source]

    # File app/models/language_character_family.rb, line 23
23:   def authorized_for_read?
24:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
25:   end

[Source]

    # File app/models/language_character_family.rb, line 15
15:   def authorized_for_update?
16:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
17:   end

[Validate]