From 98507bca226bb8219a1b413087687821a51a9135 Mon Sep 17 00:00:00 2001 From: Jim Bailey Date: Tue, 5 Mar 2024 11:10:43 +0000 Subject: [PATCH] chore: Rubocop fixes --- app/controllers/api/lodgings_controller.rb | 2 +- app/models/lodging.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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