Rubocop app/controllers/widget_controller.rb
This commit is contained in:
parent
ba7dfa5c21
commit
cdfafcdd1c
2 changed files with 17 additions and 18 deletions
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue