Sha256: 5c8b95e6960d88188012113ea4e00b24c59df685cf533d07d2d87e09bbeffdd0

Contents?: true

Size: 125 Bytes

Versions: 19

Compression:

Stored size: 125 Bytes

Contents

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

  default_scope -> { order(:sort) }
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rails_sortable-1.6.0 spec/dummy/app/models/item.rb
rails_sortable-1.5.0 spec/dummy/app/models/item.rb
rails_sortable-1.4.1 spec/dummy/app/models/item.rb
rails_sortable-1.4.0 spec/dummy/app/models/item.rb
rails_sortable-1.3.2 spec/dummy/app/models/item.rb
rails_sortable-1.3.1 spec/dummy/app/models/item.rb
rails_sortable-1.3.0 spec/dummy/app/models/item.rb
rails_sortable-1.2.1 spec/dummy/app/models/item.rb
rails_sortable-1.2.0 spec/dummy/app/models/item.rb
rails_sortable-1.1.4 spec/dummy/app/models/item.rb
rails_sortable-1.1.3 spec/dummy/app/models/item.rb
rails_sortable-1.1.2 spec/dummy/app/models/item.rb
rails_sortable-1.1.1 spec/dummy/app/models/item.rb
rails_sortable-1.1.0 spec/dummy/app/models/item.rb
rails_sortable-1.0.0 spec/dummy/app/models/item.rb
rails_sortable-0.1.1 spec/dummy/app/models/item.rb
rails_sortable-0.1.0 spec/dummy/app/models/item.rb
rails_sortable-0.0.5 spec/dummy/app/models/item.rb
rails_sortable-0.0.4 spec/dummy/app/models/item.rb