mod/standard/set/all/rich_html/modal.rb in card-1.99.6 vs mod/standard/set/all/rich_html/modal.rb in card-1.100.0
- old
+ new
@@ -89,11 +89,11 @@
def modal_dialog_classes opts
classes = [classy("modal-dialog")]
return classes unless opts.present?
- add_modal_size_class classes, opts.delete(:size)
- classes << "modal-dialog-centered" if opts.delete(:vertically_centered)
+ add_modal_size_class classes, opts[:size]
+ classes << "modal-dialog-centered" if opts[:vertically_centered]
classes.join " "
end
def add_modal_size_class classes, size
size = normalize_modal_size_class size