lib/alchemy/forms/builder.rb in alchemy_cms-4.6.7 vs lib/alchemy/forms/builder.rb in alchemy_cms-5.0.0.beta1

- old
+ new

@@ -9,24 +9,24 @@ options[:wrapper] = :alchemy if object.respond_to?(:attribute_fixed?) && object.attribute_fixed?(attribute_name) options[:disabled] = true options[:input_html] = options.fetch(:input_html, {}).merge( - 'data-alchemy-tooltip' => Alchemy.t(:attribute_fixed, attribute_name) + "data-alchemy-tooltip" => Alchemy.t(:attribute_fixed, attribute_name), ) end super end # Renders a button tag wrapped in a div with 'submit' class. # def submit(label, options = {}) options = { - wrapper_html: {class: 'submit'} + wrapper_html: {class: "submit"}, }.update(options) - template.content_tag('div', options.delete(:wrapper_html)) do - template.content_tag('button', label, options.delete(:input_html)) + template.content_tag("div", options.delete(:wrapper_html)) do + template.content_tag("button", label, options.delete(:input_html)) end end end end end