This project is archived and is in readonly mode.

#5688 ✓resolved
vhochstein

<Model>.offset(x).limit(x) unknown offset method exception

Reported by vhochstein | September 23rd, 2010 @ 09:04 AM

run rails console

Type:
Team.offset(1).limit(1)
call will fail

Team.limit(1).offset(1) works great.

Reason for this is in my opinion a missing delegate call for :offset in ActiveRecord Base:
delegate :select, :group, :order, :reorder, :limit, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :create_with, :to => :scoped

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages