Skip to content

Commit

Permalink
Merge pull request #650 from olleolleolle/patch-1
Browse files Browse the repository at this point in the history
README.md: Avoid hashrockets for args
  • Loading branch information
mislav committed Oct 4, 2023
2 parents 2b5dadd + 656cc5b commit 2c11a6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ New in Active Record 3:
``` ruby
# paginate in Active Record now returns a Relation
Post.where(:published => true).paginate(:page => params[:page]).order('id DESC')
Post.where(published: true).paginate(page: params[:page]).order(id: :desc)
# the new, shorter page() method
Post.page(params[:page]).order('created_at DESC')
Post.page(params[:page]).order(created_at: :desc)
```
See [the wiki][wiki] for more documentation. [Report bugs][issues] on GitHub.
Expand Down

0 comments on commit 2c11a6c

Please sign in to comment.