diff --git a/app/controllers/api/lodgings_controller.rb b/app/controllers/api/lodgings_controller.rb index 05ec354d6..bd4d9dc06 100644 --- a/app/controllers/api/lodgings_controller.rb +++ b/app/controllers/api/lodgings_controller.rb @@ -100,7 +100,7 @@ def cancel_all render status: :no_content end - private + private def render_lodging(lodging, status) render_json lodging, serializer: LodgingSerializer, include: included_relationships, status: diff --git a/app/models/lodging.rb b/app/models/lodging.rb index a7173bee6..a71bd085f 100644 --- a/app/models/lodging.rb +++ b/app/models/lodging.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + class Lodging < ApplicationRecord include StateMachineable