class DogBiscuits::Authority

All authority classes inherit from this.

Public Instance Methods

add_label() click to toggle source

Ensure rdfs label and pref label and the same. Prefer preflabel.

# File lib/dog_biscuits/models/authority.rb, line 37
def add_label
  self.rdfs_label = preflabel if preflabel.present?
  self.preflabel = rdfs_label if rdfs_label.present?
end
authority?() click to toggle source
# File lib/dog_biscuits/models/authority.rb, line 16
def authority?
  true
end
collection?() click to toggle source
# File lib/dog_biscuits/models/authority.rb, line 28
def collection?
  false
end
edit_groups() click to toggle source
# File lib/dog_biscuits/models/authority.rb, line 32
def edit_groups
  ['admin']
end
file_set?() click to toggle source
# File lib/dog_biscuits/models/authority.rb, line 24
def file_set?
  false
end
work?() click to toggle source
# File lib/dog_biscuits/models/authority.rb, line 20
def work?
  false
end