From cdfafcdd1c2f323117d2ccbba04b8be06dc0323c Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 24 Feb 2021 11:52:51 -0600 Subject: [PATCH] Rubocop app/controllers/widget_controller.rb --- .rubocop.yml | 1 - app/controllers/widget_controller.rb | 34 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index bdf18d9e..0e01c329 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -221,7 +221,6 @@ AllCops: - 'app/controllers/concerns/controllers/locale.rb' - 'app/controllers/image_attachments_controller.rb' - 'app/controllers/ticket_levels_controller.rb' - - 'app/controllers/widget_controller.rb' - 'app/controllers/campaigns/supporters_controller.rb' - 'app/controllers/campaigns/campaign_gift_options_controller.rb' - 'app/controllers/campaigns/donations_controller.rb' diff --git a/app/controllers/widget_controller.rb b/app/controllers/widget_controller.rb index f6ee38b3..f7498ce1 100644 --- a/app/controllers/widget_controller.rb +++ b/app/controllers/widget_controller.rb @@ -3,25 +3,25 @@ # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE class WidgetController < ApplicationController - # we don't want anything to intefer with loading these docs - skip_forgery_protection + # we don't want anything to intefer with loading these docs + skip_forgery_protection - def v2 - expires_in 10.minutes - head :found, location: helpers.asset_pack_url("donate-button-v2.js"), content_type: "application/javascript" - end + def v2 + expires_in 10.minutes + head :found, location: helpers.asset_pack_url('donate-button-v2.js'), content_type: 'application/javascript' + end - def i18n - head :found, location: helpers.asset_pack_url("i18n.js"), content_type: "application/javascript" - end + def i18n + head :found, location: helpers.asset_pack_url('i18n.js'), content_type: 'application/javascript' + end - def v1_css - expires_in 10.minutes - head :found, location: helpers.stylesheet_url("widget/donate-button.css"), content_type: "text/css" - end + def v1_css + expires_in 10.minutes + head :found, location: helpers.stylesheet_url('widget/donate-button.css'), content_type: 'text/css' + end - def v2_css - expires_in 10.minutes - head :found, location: helpers.stylesheet_url("widget/donate-button-v2.css"), content_type: "text/css" - end + def v2_css + expires_in 10.minutes + head :found, location: helpers.stylesheet_url('widget/donate-button-v2.css'), content_type: 'text/css' + end end