Ensure JSON API returns boolean for Post#has_large.

Currently the JSON API returns null for false and 0 for true for this
attribute. Cast it to a boolean instead.
This commit is contained in:
evazion
2014-10-25 11:08:59 -05:00
parent b47a794a93
commit 8844220c48

View File

@@ -172,7 +172,7 @@ class Post < ActiveRecord::Base
end
def has_large
has_large?
!!has_large?
end
def large_image_width