diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-11 16:07:44 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-12 14:57:45 +0000 |
commit | 06a728f978254ec702d33971d9398e5c42c551a7 (patch) | |
tree | 6693b009a08e6f7b28e73574b52b55d8f706531d /app/helpers/application_helper.rb | |
parent | 89ee3ff54eba0c23bbe1ce6deb40092185fdfb01 (diff) |
In excerpt, radius is now an option.
Passing it as an argument is deprecated.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 99322c65f..6d0a111e9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -61,9 +61,9 @@ module ApplicationHelper end def highlight_and_excerpt(t, words, excount, html = true) - newt = excerpt(t, words[0], excount) + newt = excerpt(t, words[0], :radius => excount) if not newt - newt = excerpt(t, '', excount) + newt = excerpt(t, '', :radius => excount) end t = newt t = highlight_words(t, words, html) |