mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
more Ruby 1.9 Hash syntax in our guides
This commit is contained in:
parent
bd4470e319
commit
1655f4142e
2 changed files with 2 additions and 2 deletions
|
@ -707,7 +707,7 @@ Post.order('id DESC').limit(20).unscope(:order, :limit) = Post.all
|
||||||
You can additionally unscope specific where clauses. For example:
|
You can additionally unscope specific where clauses. For example:
|
||||||
|
|
||||||
```ruby
|
```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`
|
### `only`
|
||||||
|
|
|
@ -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.
|
The options accepted by the assets cache store are the same as the application's cache store.
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
config.assets.cache_store = :memory_store, { :size => 32.megabytes }
|
config.assets.cache_store = :memory_store, { size: 32.megabytes }
|
||||||
```
|
```
|
||||||
|
|
||||||
Adding Assets to Your Gems
|
Adding Assets to Your Gems
|
||||||
|
|
Loading…
Reference in a new issue