diff --git a/app/models/tag.rb b/app/models/tag.rb index abd992228..89f5c23c7 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -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