app/controllers/motor/configs_controller.rb in motor-admin-0.1.12 vs app/controllers/motor/configs_controller.rb in motor-admin-0.1.13
- old
+ new
@@ -1,8 +1,10 @@
# frozen_string_literal: true
module Motor
class ConfigsController < ApiBaseController
+ wrap_parameters :data, except: %i[include fields]
+
load_and_authorize_resource
def index
render json: { data: Motor::ApiQuery::BuildJson.call(@configs, params) }
end