Class: VenusMediaLibrary::CommunityAssetsController

Inherits:
ApplicationController show all
Includes:
ImagesHelper
Defined in:
app/controllers/venus_media_library/community_assets_controller.rb

Instance Method Summary collapse

Methods included from ImagesHelper

#ml_blob_url, #ml_image_payload, #ml_previewable?, #ml_thumb_url

Instance Method Details

#indexObject



5
6
7
8
9
10
11
12
13
14
# File 'app/controllers/venus_media_library/community_assets_controller.rb', line 5

def index
  load_media_assets(scoped_media_assets.where(community_shared: true))

  respond_to do |format|
    format.html
    format.json do
      render json: { images: @images, page: @page, has_more: @has_more, total: @total_count }
    end
  end
end