app/controllers/concerns/batch_actions.rb
# If the 'authorize' batch option is set, authorizes the action by invoking
# the desired Pundit policy.
If the 'authorize' batch option is set, authorizes the action by invoking
the desired Pundit policy.
If the ' authorize ' batch option is set authorizes the action by invoking the desired Pundit policy .
def authorize_batch_action
    if (record = self.class.batch_opts[:authorize])
      authorize record
    end
  end
def authorize_batch_action if ( record = self . class . batch_opts [ :authorize ] ) authorize record end end
If the 'authorize' batch option is set, authorizes the action by invoking
the desired Pundit policy.
If the ' authorize ' batch option is set authorizes the action by invoking the desired Pundit policy .