From 1655f4142efa89acb86812f5c1d7572e51cbae80 Mon Sep 17 00:00:00 2001 From: Yves Senn Date: Mon, 15 Apr 2013 14:46:11 +0200 Subject: [PATCH] more Ruby 1.9 Hash syntax in our guides --- guides/source/active_record_querying.md | 2 +- 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