Browse files

fixed when options[:class] is nil

  • Loading branch information...
1 parent de4beec commit 1eb0e5bdebc78f7796c9da902e25ca627701ce63 juan david pastas committed Jul 11, 2012
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

0 comments on commit 1eb0e5b

Please sign in to comment.