Class CharacterName
In: app/models/character_name.rb
Parent: ActiveRecord::Base

Provides the name of the characte‘s parts. In Japanese this is called "radicals", in other languages it may not exist.

Methods

Public Instance methods

[Source]

   # File app/models/character_name.rb, line 7
7:   def to_label
8:     name
9:   end

Protected Instance methods

[Source]

    # File app/models/character_name.rb, line 13
13:   def authorized_for_create?
14:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
15:   end

[Source]

    # File app/models/character_name.rb, line 21
21:   def authorized_for_destroy?
22:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
23:   end

[Source]

    # File app/models/character_name.rb, line 25
25:   def authorized_for_read?
26:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
27:   end

[Source]

    # File app/models/character_name.rb, line 17
17:   def authorized_for_update?
18:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_ADMIN)
19:   end

[Validate]