limit(value)
Instance Public methods
Specifies a limit for the number of records to retrieve.
User.limit(10) # generated SQL has 'LIMIT 10' User.limit(10).limit(20) # generated SQL has 'LIMIT 20'
Specifies a limit for the number of records to retrieve.
User.limit(10) # generated SQL has 'LIMIT 10' User.limit(10).limit(20) # generated SQL has 'LIMIT 20'
Please login to continue.