summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)