Class: Georgia::Api::MediaController

Inherits:
Georgia::ApplicationController show all
Defined in:
app/controllers/georgia/api/media_controller.rb

Instance Method Summary collapse

Methods inherited from Georgia::ApplicationController

#current_ability, #current_locale

Instance Method Details

#picturesObject



5
6
7
8
9
# File 'app/controllers/georgia/api/media_controller.rb', line 5

def pictures
  @search = Georgia::Indexer.search(Ckeditor::Picture, params.merge(per: 12))
  @pictures = Ckeditor::PictureDecorator.decorate_collection(@search.results)
  render layout: false
end