diff options
author | Azul <azul@riseup.net> | 2016-08-15 21:09:34 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-08-15 21:09:34 +0200 |
commit | 76821cdd6064f2248948da83ca806598ee18199e (patch) | |
tree | 398917e264bec2c7bad9cce04bddee8757608604 /lib | |
parent | e507da1feac58f49a8aa4b5058cd61720cb1ca27 (diff) |
simple_form: fix enhancement to work with latest rails
Diffstat (limited to 'lib')
-rw-r--r-- | lib/extensions/simple_form.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/simple_form.rb b/lib/extensions/simple_form.rb index f255917..1e30e9f 100644 --- a/lib/extensions/simple_form.rb +++ b/lib/extensions/simple_form.rb @@ -2,7 +2,7 @@ module WrappedButton def wrapped_button(*args, &block) template.content_tag :div, :class => "form-actions" do options = args.extract_options! - options[:class] = ['btn-primary', options[:class]].compact + options[:class] = ['btn-primary', options[:class]].compact.flatten.join(' ') args.unshift :loading args << options if cancel = options.delete(:cancel) |