Pass classes as array

This commit is contained in:
Rafael Mendonça França 2011-09-11 23:46:53 -03:00
parent 89d0680782
commit a27e2231c9
1 changed files with 1 additions and 1 deletions

View File

@ -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)