forked from fixin.me/fixin.me
Disable Turbo application-wide
This commit is contained in:
parent
71bc68efb3
commit
4a1fe657c0
@ -35,7 +35,6 @@ module ApplicationHelper
|
||||
|
||||
def tabular_form_for(record, options = {}, &block)
|
||||
options.merge! builder: TabularFormBuilder
|
||||
options.merge! data: {turbo: false}
|
||||
form_for(record, **options, &-> (f) { f.table_form_for(&block) })
|
||||
end
|
||||
|
||||
|
@ -1,2 +1,3 @@
|
||||
// Configure your import map in config/importmap.rb. Read more: https://github.com/rails/importmap-rails
|
||||
import "@hotwired/turbo-rails"
|
||||
Turbo.session.drive = false
|
||||
|
@ -14,7 +14,7 @@
|
||||
<div class="application-menu">
|
||||
<% if user_signed_in? %>
|
||||
<%= image_link_to t(:sign_out), "logout", destroy_user_session_path,
|
||||
data: { turbo_method: :delete } %>
|
||||
data: { turbo: true, turbo_method: :delete } %>
|
||||
<% else %>
|
||||
<%= image_link_to t(:register), "account-plus-outline", new_user_registration_path,
|
||||
unless_current: true %>
|
||||
|
Loading…
x
Reference in New Issue
Block a user