Sha256: 244e85250d504db822bdd3c81ae02752b996ea763e94c44d5277ad698ac9be19

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 Bytes

Contents

module Georgia
  module Api
    class MediaController < Georgia::ApplicationController

      def pictures
        @search = Ckeditor::Picture.search do
          fulltext params[:query] do
            fields(:filename, :tags)
          end
          paginate(page: params[:page], per_page: (params[:per] || 12))
        end
        @pictures = @search.results
        render layout: false
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
georgia-0.7.6 app/controllers/georgia/api/media_controller.rb
georgia-0.7.5 app/controllers/georgia/api/media_controller.rb
georgia-0.7.4 app/controllers/georgia/api/media_controller.rb
georgia-0.7.3 app/controllers/georgia/api/media_controller.rb
georgia-0.7.2 app/controllers/georgia/api/media_controller.rb
georgia-0.7.1 app/controllers/georgia/api/media_controller.rb
georgia-0.7.0 app/controllers/georgia/api/media_controller.rb