Class Definition
In: app/models/definition.rb
Parent: ActiveRecord::Base

Methods

Included Modules

KotobaModel

Public Class methods

[Source]

   # File app/models/definition.rb, line 5
5:   def self.overview
6:     KotobaModel.overview(self)
7:   end

Public Instance methods

[Source]

    # File app/models/definition.rb, line 22
22:   def to_label
23:     definition
24:   end

Protected Instance methods

[Source]

    # File app/models/definition.rb, line 28
28:   def authorized_for_create?
29:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
30:   end

[Source]

    # File app/models/definition.rb, line 36
36:   def authorized_for_destroy?
37:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
38:   end

[Source]

    # File app/models/definition.rb, line 40
40:   def authorized_for_read?
41:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
42:   end

[Source]

    # File app/models/definition.rb, line 32
32:   def authorized_for_update?
33:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
34:   end

[Validate]