Fix serializer

rails
Marcin Kulik 8 years ago
parent aedb04a90e
commit 9382a1af86

@ -11,7 +11,7 @@ class AsciicastSerializer < ActiveModel::Serializer
if v0_url? if v0_url?
object.stdout_frames_url object.stdout_frames_url
else else
url = object.data.url if url = object.data.url
if url.starts_with?("/") if url.starts_with?("/")
asciicast_path(object, format: :json) # download URL for local carrierwave store asciicast_path(object, format: :json) # download URL for local carrierwave store
else else
@ -19,6 +19,7 @@ class AsciicastSerializer < ActiveModel::Serializer
end end
end end
end end
end
def private? def private?
object.private? object.private?

Loading…
Cancel
Save