Class VocabularyRole
In: app/models/vocabulary_role.rb
Parent: ActiveRecord::Base

Methods

Constants

VOCABULARY_ROLE_OWNER = 'owner'
VOCABULARY_ROLE_EDITOR = 'editor'

Public Class methods

[Source]

    # File app/models/vocabulary_role.rb, line 19
19:   def self.get_editor
20:     return VocabularyRole.find_by_role(VOCABULARY_ROLE_EDITOR)
21:   end

[Source]

    # File app/models/vocabulary_role.rb, line 15
15:   def self.get_owner
16:     return VocabularyRole.find_by_role(VOCABULARY_ROLE_OWNER)
17:   end

Public Instance methods

[Source]

    # File app/models/vocabulary_role.rb, line 11
11:   def to_label
12:     role
13:   end

[Validate]