Skip to content

Commit

Permalink
fix long line
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieujobin committed Oct 30, 2023
1 parent 6d7daba commit 7f7965d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ph_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f7965d

Please sign in to comment.