app/helpers/trestle/url_helper.rb in trestle-0.10.0.pre vs app/helpers/trestle/url_helper.rb in trestle-0.10.0.pre2
- old
+ new
@@ -45,10 +45,10 @@
end
# Determine link data options
options[:data] ||= {}
- if MODAL_ACTIONS.include?(action) && admin.form.modal?
+ if MODAL_ACTIONS.include?(action) && admin.respond_to?(:form) && admin.form.modal?
options[:data][:controller] ||= "modal-trigger"
else
options[:data][:turbo_frame] = "_top"
end