Sha256: 42d5a83a38821aa9110446566889aa5ec4541b358d7782365064410fcc645b79

Contents?: true

Size: 534 Bytes

Versions: 17

Compression:

Stored size: 534 Bytes

Contents

FactoryBot.define do
  factory :permission do
    user
    feature

    can_create false
    can_read true
    can_update false
    can_delete false
  end

  factory :create_permission, parent: :permission do
    can_create true
  end

  factory :update_permission, parent: :permission do
    can_update true
  end

  factory :delete_permission, parent: :permission do
    can_delete true
  end

  factory :all_permission, parent: :permission do
    can_create true
    can_read true
    can_update true
    can_delete true
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
usman-0.4.10.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.9.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.8.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.7.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.6.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.5.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.4.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.3.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.2.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.1.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.4.0.pre.materialize spec/dummy/spec/factories/permission.rb
usman-0.3.38 spec/dummy/spec/factories/permission.rb
usman-0.3.37 spec/dummy/spec/factories/permission.rb
usman-0.3.36 spec/dummy/spec/factories/permission.rb
usman-0.3.35 spec/dummy/spec/factories/permission.rb
usman-0.3.34 spec/dummy/spec/factories/permission.rb
usman-0.3.33 spec/dummy/spec/factories/permission.rb