Fallback for style in tag_helper

This commit is contained in:
Alexander Meindl 2017-08-05 17:24:51 +02:00
parent 80c0d5c821
commit 04e9f08fd9

View File

@ -13,6 +13,11 @@ module AdditionalsTagHelper
content = ''
style = options.delete(:style)
style = if style.nil?
:cloud
else
style.to_sym
end
# prevent ActsAsTaggableOn::TagsHelper from calling `all`
# otherwise we will need sort tags after `tag_cloud`