# File lib/simple_form/form_builder.rb, line 236 def button(type, *args, &block) options = args.extract_options!.dup options[:class] = [SimpleForm.button_class, options[:class]].compact args << options if respond_to?("#{type}_button""#{type}_button") send("#{type}_button""#{type}_button", *args, &block) else send(type, *args, &block) end end