EagerELK/ditty

View on GitHub
lib/ditty/policies/application_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module Ditty
  class ApplicationPolicy
    attr_reader :user, :record

    def initialize(user, record)
      @user = user
      @record = record
    end

    class Scope
      attr_reader :user, :scope

      def initialize(user, scope)
        @user = user
        @scope = scope
      end
    end
  end
end