Skip to content

Commit

Permalink
more Ruby 1.9 Hash syntax in our guides
Browse files Browse the repository at this point in the history
  • Loading branch information
senny committed Apr 15, 2013
1 parent bd4470e commit 1655f41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guides/source/active_record_querying.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ Post.order('id DESC').limit(20).unscope(:order, :limit) = Post.all
You can additionally unscope specific where clauses. For example:

```ruby
Post.where(:id => 10).limit(1).unscope(:where => :id, :limit).order('id DESC') = Post.order('id DESC')
Post.where(:id => 10).limit(1).unscope(where: :id, :limit).order('id DESC') = Post.order('id DESC')
```

### `only`
Expand Down
2 changes: 1 addition & 1 deletion guides/source/asset_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ config.assets.cache_store = :memory_store
The options accepted by the assets cache store are the same as the application's cache store.

```ruby
config.assets.cache_store = :memory_store, { :size => 32.megabytes }
config.assets.cache_store = :memory_store, { size: 32.megabytes }
```

Adding Assets to Your Gems
Expand Down

0 comments on commit 1655f41

Please sign in to comment.