From 7f7965deb14e0d344bc211f31edb865cc5f3b920 Mon Sep 17 00:00:00 2001 From: Mathieu Jobin Date: Mon, 30 Oct 2023 14:59:38 +0900 Subject: [PATCH] fix long line --- lib/ph_model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ph_model.rb b/lib/ph_model.rb index e9faacc..54e79d7 100644 --- a/lib/ph_model.rb +++ b/lib/ph_model.rb @@ -40,8 +40,8 @@ def as_json(*) end def inspect - attr_info = self.class.attributes.map { |attr_name, info| "#{attr_name}: #{self.send(attr_name).inspect}" }.join(", ") - "#<#{self.model_name} #{attr_info}>" + attr_info = self.class.attributes.map { |attr_name, info| "#{attr_name}: #{self.send(attr_name).inspect}" } + "#<#{self.model_name} #{attr_info.join(', ')}>" end # Monkey patch #assign_attributes inside ActiveAttr::MassAssignment