Sha256: cae1b9927bc2203b30bc0e5dbd9c007c29e2d4ebe7a807382cf6cc2d7e7e5325

Contents?: true

Size: 352 Bytes

Versions: 1

Compression:

Stored size: 352 Bytes

Contents

require "active_record"

module Permisi
  class Backend::ActiveRecord < Backend::Base
    class << self
      def table_name_prefix
        "permisi_"
      end

      def findsert_actor(aka)
        Actor.find_or_create_by(aka: aka)
      end

      def actors
        Actor.all
      end

      def roles
        Role.all
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
permisi-0.1.0 lib/permisi/backend/active_record.rb