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
mafia-admin-0.3.15 app/controllers/motor/audits_controller.rb
mafia-admin-0.3.14 app/controllers/motor/audits_controller.rb
motor-admin-0.3.14 app/controllers/motor/audits_controller.rb
motor-admin-0.3.13 app/controllers/motor/audits_controller.rb
motor-admin-0.3.12 app/controllers/motor/audits_controller.rb
motor-admin-0.3.11 app/controllers/motor/audits_controller.rb
motor-admin-0.3.10 app/controllers/motor/audits_controller.rb
motor-admin-0.3.9 app/controllers/motor/audits_controller.rb
motor-admin-0.3.8 app/controllers/motor/audits_controller.rb
motor-admin-0.3.7 app/controllers/motor/audits_controller.rb
motor-admin-0.3.6 app/controllers/motor/audits_controller.rb
motor-admin-0.3.5 app/controllers/motor/audits_controller.rb
motor-admin-0.3.4 app/controllers/motor/audits_controller.rb
motor-admin-0.3.3 app/controllers/motor/audits_controller.rb
motor-admin-0.3.2 app/controllers/motor/audits_controller.rb
motor-admin-0.3.1 app/controllers/motor/audits_controller.rb
motor-admin-0.3.0 app/controllers/motor/audits_controller.rb
motor-admin-0.2.89 app/controllers/motor/audits_controller.rb
motor-admin-0.2.88 app/controllers/motor/audits_controller.rb
motor-admin-0.2.87 app/controllers/motor/audits_controller.rb