Sha256: 282c76a9c403a908d74749f9dc11d428f2e2851b2d54969d57ca835050b71dbf

Contents?: true

Size: 332 Bytes

Versions: 1

Compression:

Stored size: 332 Bytes

Contents

module Georgia
  module Api
    class MediaController < Georgia::ApplicationController

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

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.7.8 app/controllers/georgia/api/media_controller.rb