Class WordReferenceType
In: app/models/word_reference_type.rb
Parent: ActiveRecord::Base

Methods

Public Class methods

[Source]

    # File app/models/word_reference_type.rb, line 13
13:   def self.get_antonym
14:     self.find_by_word_reference_type('antonym')  
15:   end

[Source]

    # File app/models/word_reference_type.rb, line 9
 9:   def self.get_synonym
10:     self.find_by_word_reference_type('synonym')  
11:   end

Public Instance methods

[Source]

   # File app/models/word_reference_type.rb, line 5
5:   def to_label
6:     word_reference_type
7:   end

Protected Instance methods

[Source]

    # File app/models/word_reference_type.rb, line 19
19:   def authorized_for_create?
20:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
21:   end

[Source]

    # File app/models/word_reference_type.rb, line 27
27:   def authorized_for_destroy?
28:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
29:   end

[Source]

    # File app/models/word_reference_type.rb, line 31
31:   def authorized_for_read?
32:     return Authorize.is_role_allowed_for_user?(current_user, UserRole::USER_ROLE_USER)
33:   end

[Source]

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

[Validate]