Sha256: 50c45919f8146e34bbbbf89294ca9b3fbfcd108f6b5dadc933e24fa2e7b59582

Contents?: true

Size: 386 Bytes

Versions: 205

Compression:

Stored size: 386 Bytes

Contents

# frozen_string_literal: true

module Motor
  class AuditsController < ApiBaseController
    load_and_authorize_resource :audit

    def index
      audits = Motor::ApiQuery.call(@audits, params)

      render json: {
        data: Motor::ApiQuery::BuildJson.call(audits, params, current_ability),
        meta: Motor::ApiQuery::BuildMeta.call(audits, params)
      }
    end
  end
end

Version data entries

205 entries across 205 versions & 7 rubygems

Version Path
motor-admin-0.4.34 app/controllers/motor/audits_controller.rb
motor-admin-0.4.33 app/controllers/motor/audits_controller.rb
motor-admin-0.4.32 app/controllers/motor/audits_controller.rb
motor-admin-0.4.31 app/controllers/motor/audits_controller.rb
motor-admin-0.4.30 app/controllers/motor/audits_controller.rb
motor-admin-0.4.29 app/controllers/motor/audits_controller.rb
motor-admin-0.4.28 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.35 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.34 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.33 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.32 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.31 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.30 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.29 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.28 app/controllers/motor/audits_controller.rb
motor-admin-cstham8-0.4.27 app/controllers/motor/audits_controller.rb
motor-admin-0.4.27 app/controllers/motor/audits_controller.rb
motor-admin-unosquare-0.4.28 app/controllers/motor/audits_controller.rb
motor-admin-unosquare-0.4.27 app/controllers/motor/audits_controller.rb
motor-admin-pz-0.4.26 app/controllers/motor/audits_controller.rb