Sha256: e268921985dd584ad9e86d01a6698c2d5c35e282cb24f1b3473f9f7219870150

Contents?: true

Size: 166 Bytes

Versions: 9

Compression:

Stored size: 166 Bytes

Contents

class MultipleClassesController < ApplicationController
  # GET /multiple_classes
  def index
    @items = (FirstItem.all + SecondItem.all).sort_by(&:sort)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_sortable-1.6.0 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.5.0 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.4.1 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.4.0 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.3.2 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.3.1 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.3.0 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.2.1 spec/dummy/app/controllers/multiple_classes_controller.rb
rails_sortable-1.2.0 spec/dummy/app/controllers/multiple_classes_controller.rb