Sha256: 47dbfe6acbbfcba826bef04425ebc5ce362e1f7c006fa13d6dbf3e17c631ef4d

Contents?: true

Size: 200 Bytes

Versions: 42

Compression:

Stored size: 200 Bytes

Contents

module Virgo
  class ImagesController < ApplicationController
    def index
      @images = Image.order(created_at: :desc).limit(20)

      render json: @images.map(&:redactor_json)
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
virgo-0.3.17 app/controllers/virgo/images_controller.rb
virgo-0.3.16 app/controllers/virgo/images_controller.rb
virgo-0.3.15 app/controllers/virgo/images_controller.rb
virgo-0.3.14 app/controllers/virgo/images_controller.rb
virgo-0.3.13 app/controllers/virgo/images_controller.rb
virgo-0.3.12 app/controllers/virgo/images_controller.rb
virgo-0.3.11 app/controllers/virgo/images_controller.rb
virgo-0.3.10 app/controllers/virgo/images_controller.rb
virgo-0.3.9 app/controllers/virgo/images_controller.rb
virgo-0.3.8 app/controllers/virgo/images_controller.rb
virgo-0.3.7 app/controllers/virgo/images_controller.rb
virgo-0.3.6 app/controllers/virgo/images_controller.rb
virgo-0.3.4 app/controllers/virgo/images_controller.rb
virgo-0.3.3 app/controllers/virgo/images_controller.rb
virgo-0.3.2 app/controllers/virgo/images_controller.rb
virgo-0.3.1 app/controllers/virgo/images_controller.rb
virgo-0.3 app/controllers/virgo/images_controller.rb
virgo-0.2.9 app/controllers/virgo/images_controller.rb
virgo-0.2.8 app/controllers/virgo/images_controller.rb
virgo-0.2.7 app/controllers/virgo/images_controller.rb