Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed when options[:class] is nil

  • Loading branch information...
commit 1eb0e5bdebc78f7796c9da902e25ca627701ce63 1 parent de4beec
juan david pastas authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/bootstrap_helper/helper.rb
View
2  lib/bootstrap_helper/helper.rb
@@ -147,7 +147,7 @@ def render_list(list=[], options={})
end
def btn(text, path, type = '', options={})
- css = options.delete(:class) || options.delete('class')
+ css = (options.delete(:class) || options.delete('class')).to_s
link_to text, path, {class: 'btn ' + type + ' ' + css}.merge(options)
end
Please sign in to comment.
Something went wrong with that request. Please try again.