lib/proxes/models/permission.rb in proxes-0.4.4 vs lib/proxes/models/permission.rb in proxes-0.5.0
- old
+ new
@@ -1,10 +1,12 @@
# frozen_string_literal: true
require 'proxes/models/base'
module ProxES
- class Permission < Base
+ class Permission < Sequel::Model
+ include ProxES::Base
+
many_to_one :role
many_to_one :user
dataset_module do
def for_user(a_user, action)