Sha256: 05a5e9a698b6dcffa517476a3c389febc1c7708a4b0decac596bd0f9a1d87109
Contents?: true
Size: 523 Bytes
Versions: 10
Compression:
Stored size: 523 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # Main application policy so we don't ahve to repeat the initialization # code in each Policy. To be used with Pundit. class ApplicationPolicy attr_reader :user, :record # Initializes a Policy. # # user - The User that we want to authorize. # record - The record on which to perform the authorizations. # def initialize(user, record) @user = user @record = record end end end end
Version data entries
10 entries across 10 versions & 2 rubygems