You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
391 B
21 lines
391 B
json.carousels do
|
|
json.array! @carousels do |carousel|
|
|
json.extract! carousel, :id, :link, :position
|
|
|
|
json.path carousel.link
|
|
json.image_url Util::FileManage.source_disk_file_url(carousel)
|
|
end
|
|
end
|
|
|
|
if @advert.present?
|
|
json.advert do
|
|
json.extract! @advert, :id, :link
|
|
json.image_url Util::FileManage.source_disk_file_url(@advert)
|
|
end
|
|
else
|
|
json.advert nil
|
|
end
|
|
|
|
|
|
|