From 102fb8e76df142bac2a74a62e3370f8bf168da90 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 9 Mar 2016 02:18:21 -0500 Subject: minor cleanups --- src/guff/models/tag.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/guff/models') diff --git a/src/guff/models/tag.cr b/src/guff/models/tag.cr index ed3a122..46a69eb 100644 --- a/src/guff/models/tag.cr +++ b/src/guff/models/tag.cr @@ -40,7 +40,7 @@ module Guff WHERE name IN (%{tags}) ", - } of Symbol => String) + }) def initialize(models : Models) super(models, SQL) @@ -71,7 +71,7 @@ module Guff }) do |row| r << { "tag_id": row["tag_id"].to_s.to_i, - "name": row["name"]?.to_s, + "name": row["name"].to_s, "num_posts": row["num_posts"].to_s.to_i, } end -- cgit v1.2.3