Class: Motor::AuditsController

Inherits:
ApiBaseController show all
Defined in:
app/controllers/motor/audits_controller.rb

Instance Method Summary collapse

Methods included from CurrentAbility

#current_ability

Methods included from CurrentUserMethod

#current_user

Instance Method Details

#indexObject


7
8
9
10
11
12
13
14
# File 'app/controllers/motor/audits_controller.rb', line 7

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