app/helpers/trestle/url_helper.rb in trestle-0.10.0.pre2 vs app/helpers/trestle/url_helper.rb in trestle-0.10.0

- old
+ new

@@ -48,10 +48,10 @@ options[:data] ||= {} if MODAL_ACTIONS.include?(action) && admin.respond_to?(:form) && admin.form.modal? options[:data][:controller] ||= "modal-trigger" else - options[:data][:turbo_frame] = "_top" + options[:data][:turbo_frame] ||= (modal_request? ? "modal" : "_top") end link_to(content, path, options) else raise ActionController::UrlGenerationError, "An admin could not be inferred. Please specify an admin using the :admin option."