Commit e3f54d47 authored by Gregor Schmidt's avatar Gregor Schmidt

[#416] :class might be nil or a symbol - then + will not work as expected

parent 2c2ed958
......@@ -49,7 +49,7 @@ module WatchersHelper
url_options = {:url => url}
html_options = options.merge(:href => url_for(url))
html_options[:class] += watched ? ' icon icon-fav' : ' icon icon-fav-off'
html_options[:class] = html_options[:class].to_s + (watched ? ' icon icon-fav' : ' icon icon-fav-off')
link_to_remote((watched ? l(:button_unwatch) : l(:button_watch)), url_options, html_options)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment