diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-04-15 14:46:11 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-04-15 14:46:11 +0200 |
commit | 1655f4142efa89acb86812f5c1d7572e51cbae80 (patch) | |
tree | 2e0a239b1123817f217a192e0325e90a487ebd8d /guides | |
parent | bd4470e3199b32c9897366e13e4b7c068be0ecdc (diff) | |
download | rails-1655f4142efa89acb86812f5c1d7572e51cbae80.tar.gz rails-1655f4142efa89acb86812f5c1d7572e51cbae80.tar.bz2 rails-1655f4142efa89acb86812f5c1d7572e51cbae80.zip |
more Ruby 1.9 Hash syntax in our guides
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_record_querying.md | 2 | ||||
-rw-r--r-- | guides/source/asset_pipeline.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index 2589accadd..e1d9f39c3e 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -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` diff --git a/guides/source/asset_pipeline.md b/guides/source/asset_pipeline.md index 1e33af2658..54548c5a0b 100644 --- a/guides/source/asset_pipeline.md +++ b/guides/source/asset_pipeline.md @@ -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 |