diff options
author | zacharywelch <zwelch154@gmail.com> | 2015-11-18 22:14:13 -0500 |
---|---|---|
committer | zacharywelch <zwelch154@gmail.com> | 2015-11-18 22:14:13 -0500 |
commit | 03a7a9901d84fbb3c12086b4d3ae0ca7c815a472 (patch) | |
tree | a3afd3512f2f9b87c4e465f1e250bfc06782e4b5 /guides | |
parent | b5384d91a4e761023602d7eeb2ad92be0fe44815 (diff) | |
download | rails-03a7a9901d84fbb3c12086b4d3ae0ca7c815a472.tar.gz rails-03a7a9901d84fbb3c12086b4d3ae0ca7c815a472.tar.bz2 rails-03a7a9901d84fbb3c12086b4d3ae0ca7c815a472.zip |
[ci skip] Indentation in cache examples
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/api_app.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/api_app.md b/guides/source/api_app.md index feaaff166a..fb3127555e 100644 --- a/guides/source/api_app.md +++ b/guides/source/api_app.md @@ -221,7 +221,7 @@ For instance, using the `stale?` method: ```ruby def show - @post = Post.find(params[:id]) + @post = Post.find(params[:id]) if stale?(last_modified: @post.updated_at) render json: @post @@ -240,7 +240,7 @@ cross-client caching in the call to `stale?`: ```ruby def show - @post = Post.find(params[:id]) + @post = Post.find(params[:id]) if stale?(last_modified: @post.updated_at, public: true) render json: @post |