Sha256: cf920e7d82ffa4f9c5000fc159d2e21a20986d81b325dde887a8aca5d1ba505b

Contents?: true

Size: 130 Bytes

Versions: 9

Compression:

Stored size: 130 Bytes

Contents

class FirstItem < ActiveRecord::Base
  include RailsSortable::Model
  set_sortable :sort

  default_scope -> { order(:sort) }
end

Version data entries

9 entries across 9 versions & 1 rubygems

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