Class CharacterCodePoint
In: app/models/character_code_point.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

   # File app/models/character_code_point.rb, line 5
5:   def to_label
6:     "#{value} [#{code_point.to_label}]"
7:   end

Protected Instance methods

[Source]

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

[Source]

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

[Source]

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

[Source]

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

[Validate]