Class: Ddr::Auth::Permissions

Inherits:
Object
  • Object
show all
Extended by:
Deprecation
Defined in:
lib/ddr/auth/permissions.rb

Constant Summary collapse

READ =
:read
DOWNLOAD =
:download
ADD_CHILDREN =
:add_children
UPDATE =
:update
REPLACE =
:replace
ARRANGE =
:arrange
AUDIT =
:audit
GRANT =
:grant
ALL =
[ READ, DOWNLOAD, ADD_CHILDREN, UPDATE, REPLACE, ARRANGE, AUDIT, GRANT ]

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/ddr/auth/permissions.rb', line 16

def self.const_missing(name)
  if name == :EDIT
    Deprecation.warn(self, "`EDIT` is deprecated. Use `UPDATE` instead.")
    return UPDATE
  end
  super
end