Fallback for style in tag_helper
This commit is contained in:
parent
80c0d5c821
commit
04e9f08fd9
@ -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`
|
||||
|
Loading…
x
Reference in New Issue
Block a user