diff options
author | Marcelo Giorgi <marklazz.uy@gmail.com> | 2010-09-23 19:16:07 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-09-24 20:24:54 -0300 |
commit | 72543b2e6358a502257a0e1eac61b0e3164937dd (patch) | |
tree | 5066a2967be3c67546425bac656169a5b9265901 /activerecord/lib/active_record | |
parent | a0db7be4aff6fc6ebf67bbbd441c47d678bd5195 (diff) | |
download | rails-72543b2e6358a502257a0e1eac61b0e3164937dd.tar.gz rails-72543b2e6358a502257a0e1eac61b0e3164937dd.tar.bz2 rails-72543b2e6358a502257a0e1eac61b0e3164937dd.zip |
Delegate ActiveRecord::Base.offset to scoped methods (analogous to limit) [#5688 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index e86d4984a6..f5291b180e 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -423,7 +423,7 @@ module ActiveRecord #:nodoc: class << self # Class methods delegate :find, :first, :last, :all, :destroy, :destroy_all, :exists?, :delete, :delete_all, :update, :update_all, :to => :scoped delegate :find_each, :find_in_batches, :to => :scoped - delegate :select, :group, :order, :reorder, :limit, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :create_with, :to => :scoped + delegate :select, :group, :order, :reorder, :limit, :offset, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :create_with, :to => :scoped delegate :count, :average, :minimum, :maximum, :sum, :calculate, :to => :scoped # Executes a custom SQL query against your database and returns all the results. The results will |