From 76821cdd6064f2248948da83ca806598ee18199e Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 15 Aug 2016 21:09:34 +0200 Subject: simple_form: fix enhancement to work with latest rails --- lib/extensions/simple_form.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3