File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 146146# * `timestamp_field` - Specifies the model field to use as the update
147147# filter. Defaults to `updated_at`.
148148# * `limit` - Maximum number of records to return in each page/set.
149- # Defaults to 100.
150- # The wrapper will paginate the result via resumption tokens.
149+ # Defaults to 100, set to `nil` for all records in one page. Otherwise
150+ # the wrapper will paginate the result via resumption tokens.
151151# _Caution: specifying too large a limit will adversely affect performance._
152152#
153153# Mapping from a ActiveRecord object to a specific metadata format follows
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class ActiveRecordWrapper < Model
1515 def initialize ( model , options = { } )
1616 @model = model
1717 @timestamp_field = options . delete ( :timestamp_field ) || 'updated_at'
18- @limit = options . delete ( :limit )
18+ @limit = options . delete ( :limit ) || 100
1919
2020 unless options . empty?
2121 raise ArgumentError . new (
You can’t perform that action at this time.
0 commit comments