Sha256: 5af9aa901348fc04fac4c138c54535c50cd97caf2c8cd0a53992bbcec0409c0f

Contents?: true

Size: 310 Bytes

Versions: 3

Compression:

Stored size: 310 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).each do |verb|
  ProxES::Permission.find_or_create(role: sa, verb: verb, pattern: '.*')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
proxes-0.3.1 lib/proxes/seed.rb
proxes-0.3.0 lib/proxes/seed.rb
proxes-0.2.0 lib/proxes/seed.rb