aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-08-26 13:53:31 +0100
committerGareth Rees <gareth@mysociety.org>2014-08-26 13:53:31 +0100
commita30606071d0ae86b252f0819f37c068a7388d861 (patch)
tree326fb12b9abb3b2f64958b7ebd4bc5ba13d50c1e
parent50fe338fe52a2ccd4e0f6f9b454c911f0a687bc8 (diff)
Add note about HighlightHelper#excerpt backport
Requires Hash options
-rw-r--r--doc/CHANGES.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/CHANGES.md b/doc/CHANGES.md
index 2058fa529..237355c1d 100644
--- a/doc/CHANGES.md
+++ b/doc/CHANGES.md
@@ -33,6 +33,16 @@
## Upgrade Notes
+* `HighlightHelper#excerpt` backports the Rails 4 `excerpt` which requires a
+ Hash for the options parameter rather than globbing the remaining arguments.
+
+For example:
+
+ - <%=h excerpt(info_request.initial_request_text, "", 100) %>
+ + <%=h excerpt(info_request.initial_request_text, "", :radius => 100) %>
+
+You will need to update any use of `excerpt` in your theme to use the Hash args.
+
* Ubuntu Precise users can get an updated version of pdftk from mySociety's PPA
Install the repo and update the sources: