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-26 12:36:57 -05:00
parent b47a794a93
commit 8844220c48
+1 -1
View File
@@ -172,7 +172,7 @@ class Post < ActiveRecord::Base
end
def has_large
has_large?
!!has_large?
end
def large_image_width