From 82c09858f2cafa0ea1636251ad0c9341ff4dcfc7 Mon Sep 17 00:00:00 2001 From: evazion Date: Wed, 3 Jun 2020 11:51:21 -0500 Subject: [PATCH] Remove unused data attributes from tag. Fixup for 647556761. --- app/helpers/application_helper.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 70919e656..26a4a0b59 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -272,8 +272,6 @@ module ApplicationHelper current_item_data_attributes = data_attributes_for(current_item, model_name, model_attributes) end - config_data_attributes = data_attributes_for(Danbooru.config, "config", [:hostname, :domain]) - controller_param = params[:controller].parameterize.dasherize action_param = params[:action].parameterize.dasherize @@ -287,8 +285,6 @@ module ApplicationHelper "current-user-ip-addr": request.remote_ip, **current_user_data_attributes, **current_item_data_attributes.to_h, - **config_data_attributes, - "config-environment": Rails.env, } } end