summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-08-15 21:09:34 +0200
committerAzul <azul@riseup.net>2016-08-15 21:09:34 +0200
commit76821cdd6064f2248948da83ca806598ee18199e (patch)
tree398917e264bec2c7bad9cce04bddee8757608604
parente507da1feac58f49a8aa4b5058cd61720cb1ca27 (diff)
simple_form: fix enhancement to work with latest rails
-rw-r--r--lib/extensions/simple_form.rb2
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)