Sha256: 271d804c3c669407be8d27594d03684281993926922a7416295d44813a859f94
Contents?: true
Size: 430 Bytes
Versions: 10
Compression:
Stored size: 430 Bytes
Contents
module JsonapiActions module Authorization extend ActiveSupport::Concern if !Gem::Specification.find_by_name('pundit') def policy_scope(scope) scope end def policy(record) OpenStruct.new(permitted_attributes: permitted_attributes) end def permitted_attributes [] end def authorize(record, query = nil) # do nothing end end end end
Version data entries
10 entries across 10 versions & 1 rubygems