Skip to content

Commit

Permalink
Remove membership and stripe subscription routes (forem#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhao-Andy authored and maestromac committed May 7, 2019
1 parent 515d2fb commit 97040ab
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 732 deletions.
13 changes: 1 addition & 12 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class PagesController < ApplicationController
# No authorization required for entirely public controller
before_action :set_cache_control_headers, only: %i[show rlyweb now membership survey badge shecoded]
before_action :set_cache_control_headers, only: %i[show rlyweb now survey badge shecoded]

def show
@page = Page.find_by!(slug: params[:slug])
Expand All @@ -27,17 +27,6 @@ def badge
set_surrogate_key_header "badge_page"
end

def membership
flash[:notice] = ""
flash[:error] = ""
@members = members_for_display
set_surrogate_key_header "membership_page"
end

def membership_form
render "membership_form", layout: false
end

def report_abuse
reported_url = params[:reported_url] || params[:url] || request.referer
@feedback_message = FeedbackMessage.new(
Expand Down
17 changes: 0 additions & 17 deletions app/views/pages/_wall_of_patrons.html.erb

This file was deleted.

Loading

0 comments on commit 97040ab

Please sign in to comment.