lib/formstrap/form_builder.rb in formstrap-0.3.1 vs lib/formstrap/form_builder.rb in formstrap-0.3.2
- old
+ new
@@ -13,10 +13,10 @@
def preview_button(value = nil, options = {}, &block)
default_options = {
data: {
controller: "preview",
- "preview-url-value": options[:url]
+ "preview-url-value": options[:url]
},
type: nil
}
button value, default_options.deep_merge(options.except(:url)), &block
end