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 146
146
# * `timestamp_field` - Specifies the model field to use as the update
147
147
# filter. Defaults to `updated_at`.
148
148
# * `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.
151
151
# _Caution: specifying too large a limit will adversely affect performance._
152
152
#
153
153
# 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
15
15
def initialize ( model , options = { } )
16
16
@model = model
17
17
@timestamp_field = options . delete ( :timestamp_field ) || 'updated_at'
18
- @limit = options . delete ( :limit )
18
+ @limit = options . delete ( :limit ) || 100
19
19
20
20
unless options . empty?
21
21
raise ArgumentError . new (
You can’t perform that action at this time.
0 commit comments