From e71f5dad4e0d27afbcc091173bee20bd6f4d2a4e Mon Sep 17 00:00:00 2001 From: Yves Senn <yves.senn@gmail.com> Date: Mon, 23 Feb 2015 16:54:40 +0100 Subject: some indenting and punctuation fixes. [ci skip] --- actionpack/CHANGELOG.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'actionpack') diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index c5b208f5b6..8f36af94b4 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -9,11 +9,12 @@ *Ville Lautanala* -* Add http_cache_forever to Action Controller, so we can cache a response that never gets expired. +* Add `http_cache_forever` to Action Controller, so we can cache a response + that never gets expired. *arthurnn* -* ActionController#translate supports symbols as shortcuts. +* `ActionController#translate` supports symbols as shortcuts. When shortcut is given it also lookups without action name. *Max Melentiev* @@ -42,14 +43,14 @@ request causing an incorrect behavior during the fall back to GET requests. Example: - ```ruby - draw do - get '/home' => 'test#index' - mount rack_app, at: '/' - end - head '/home' - assert_response :success - ``` + + draw do + get '/home' => 'test#index' + mount rack_app, at: '/' + end + head '/home' + assert_response :success + In this case, a HEAD request runs through the routes the first time and fails to match anything. Then, it runs through the list with the fallback and matches `get '/home'`. The original behavior would match the rack app in the first pass. -- cgit v1.2.3