app/models/formstrap/media_view.rb in formstrap-0.3.5 vs app/models/formstrap/media_view.rb in formstrap-0.4.2

- old
+ new

@@ -16,11 +16,10 @@ def wrapper_options default_wrapper_options.deep_merge({ class: ["mb-3", ("form-floating" if float)], data: { controller: "media", - name: name, sort: sort, accept: accept, required: required.nil? ? 0 : required } }).deep_merge(@wrapper || {}) @@ -120,10 +119,10 @@ 1 end end def modal_url - formstrap_media_path( + formstrap_media_url( name: name, ids: blob_ids, min: min, max: max, mimetype: accept,