Sha256: 1f4019f718320ae498ab9fd9aa4323b8506bb88edb9fd7b8d551d7b05e0fb228

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

ActiveRecord::Base.establish_connection({
  :adapter => (defined?(JRUBY_VERSION) ? 'jdbcsqlite3' : 'sqlite3'),
  :database => ":memory:"
})

ActiveRecord::Schema.define(:version => 0) do
  create_table :items, :force => true do |t|
    t.column :dummy, :string
  end
end

class Item < ActiveRecord::Base
  scope :reverse_sort, order("dummy DESC")
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_paginate-0.0.7 spec/support/10_active_record.rb
rails_paginate-0.0.6 spec/support/10_active_record.rb
rails_paginate-0.0.5 spec/support/10_active_record.rb
rails_paginate-0.0.4 spec/support/10_active_record.rb
rails_paginate-0.0.3 spec/support/10_active_record.rb