fix tag api json

This commit is contained in:
albert
2013-02-23 10:28:40 -05:00
parent c0257916b4
commit 309110b44d

View File

@@ -9,7 +9,7 @@ class Tag < ActiveRecord::Base
return {
"name" => name,
"id" => id,
"created_at" => created_at.strftime("%Y-%m-%d %H:%M"),
"created_at" => created_at.try(:strftime, "%Y-%m-%d %H:%M"),
"count" => post_count,
"type" => category,
"ambiguous" => false