Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
epugh committed Apr 19, 2024
1 parent 360b9fe commit 2120e31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/helpers/application_helper.rb
Expand Up @@ -77,15 +77,16 @@ def document_fields_parses_as_json document_fields
# Forms. Maybe should be an ENV variable?
# caused by https on front end attempting to make http
# call by Turbo Drive and getting mix mode errros
def form_for record, options = {}, &

# rubocop:disable Naming/BlockForwarding
def form_for record, options = {}, &block
if options[:html].nil?
options[:html] = { data: { turbo: false } }
elsif options[:html][:data].nil?
options[:html][:data] = { turbo: false }
end
super
end
# rubocop:enable Naming/BlockForwarding

def form_with(model: nil, **options, &block)
if options[:html].nil?
Expand Down

0 comments on commit 2120e31

Please sign in to comment.