Sha256: 864a0a80206b2f3c99b111fc5ded9bc20a7be87b79627bd51ae14f72ebcef647

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 Bytes

Contents

require 'proxes/db'
require 'proxes/models/role'
require 'proxes/models/permission'

ProxES::Role.find_or_create(name: 'user')
sa = ProxES::Role.find_or_create(name: 'super_admin')
%w(GET POST PUT DELETE HEAD OPTIONS INDEX).each do |verb|
  ProxES::Permission.find_or_create(role: sa, verb: verb, pattern: '.*')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proxes-0.3.6 lib/proxes/seed.rb
proxes-0.3.5 lib/proxes/seed.rb
proxes-0.3.3 lib/proxes/seed.rb
proxes-0.3.2 lib/proxes/seed.rb