Sha256: 83438f8c4f069ce8c98af7baaf1d43b0475c04f52f9d2906c5c2dd0e35e9d8eb

Contents?: true

Size: 565 Bytes

Versions: 17

Compression:

Stored size: 565 Bytes

Contents

module Ddr::Auth
  class Permissions
    extend Deprecation

    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 ]

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

  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ddr-models-2.4.10 lib/ddr/auth/permissions.rb
ddr-models-2.4.9 lib/ddr/auth/permissions.rb
ddr-models-2.4.8 lib/ddr/auth/permissions.rb
ddr-models-2.4.7 lib/ddr/auth/permissions.rb
ddr-models-2.4.6 lib/ddr/auth/permissions.rb
ddr-models-2.4.5 lib/ddr/auth/permissions.rb
ddr-models-2.4.4 lib/ddr/auth/permissions.rb
ddr-models-2.4.3 lib/ddr/auth/permissions.rb
ddr-models-2.4.2 lib/ddr/auth/permissions.rb
ddr-models-2.4.1 lib/ddr/auth/permissions.rb
ddr-models-2.4.0 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc6 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc5 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc4 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc3 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc2 lib/ddr/auth/permissions.rb
ddr-models-2.4.0.rc1 lib/ddr/auth/permissions.rb