diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2015-11-19 01:33:54 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2015-11-19 01:33:54 -0200 |
commit | 2d056f3493ad574b49be2baa87546b165e379d85 (patch) | |
tree | a3afd3512f2f9b87c4e465f1e250bfc06782e4b5 /guides | |
parent | b5384d91a4e761023602d7eeb2ad92be0fe44815 (diff) | |
parent | 03a7a9901d84fbb3c12086b4d3ae0ca7c815a472 (diff) | |
download | rails-2d056f3493ad574b49be2baa87546b165e379d85.tar.gz rails-2d056f3493ad574b49be2baa87546b165e379d85.tar.bz2 rails-2d056f3493ad574b49be2baa87546b165e379d85.zip |
Merge pull request #22338 from zacharywelch/patch-1
[ci skip] Indentation in API app guide
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 |