lib/jsonapi/authorization/default_pundit_authorizer.rb
# <tt>POST /resources</tt>
#
# ==== Parameters
#
# * +source_class+ - The class of the record to be created
# * +related_records+ - An array of records to be associated to the new
#   record. This will contain the records specified in the
#   "relationships" key in the request
POST /resources
Parameters

+source_class+ - The class of the record to be created
+related_records+ - An array of records to be associated to the new
record. This will contain the records specified in the
"relationships" key in the request
POST / resources Parameters + source_class + - The class of the record to be created + related_records + - An array of records to be associated to the new record . This will contain the records specified in the " relationships " key in the request
def create_resource(source_class, related_records, data)
        ::Pundit.authorize(user, source_class, 'create?')
        related_records.each do |record|
          ::Pundit.authorize(user, record, 'update?')
        end
      end
def create_resource ( source_class , related_records , data ) :: Pundit . authorize ( user , source_class , 'create?' ) related_records . each do | record | :: Pundit . authorize ( user , record , 'update?' ) end end
<tt>POST /resources</tt>
 Parameters
<tt > POST / resources< / tt > Parameters
source_class
<not_specific>
related_records
<not_specific>
data
<not_specific>