Pass classes as array
This commit is contained in:
parent
89d0680782
commit
a27e2231c9
|
@ -193,7 +193,7 @@ module SimpleForm
|
|||
#
|
||||
def button(type, *args, &block)
|
||||
options = args.extract_options!
|
||||
options[:class] = "#{SimpleForm.button_class} #{options[:class]}".strip
|
||||
options[:class] = [SimpleForm.button_class, options[:class]].compact
|
||||
args << options
|
||||
if respond_to?("#{type}_button")
|
||||
send("#{type}_button", *args, &block)
|
||||
|
|
Loading…
Reference in New Issue