Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1437 from SumOfUs/fix.protect_member
Browse files Browse the repository at this point in the history
  • Loading branch information
osahyoun committed Jul 22, 2019
2 parents e277a5e + db8dfbf commit 9508e35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Style/FrozenStringLiteralComment:
Layout/IndentationConsistency:
EnforcedStyle: normal

Layout/IndentArray:
Layout/IndentFirstArrayElement:
EnforcedStyle: consistent

Layout/IndentHash:
Layout/IndentFirstHashElement:
EnforcedStyle: consistent

Layout/FirstParameterIndentation:
Layout/IndentFirstArgument:
EnforcedStyle: consistent

Layout/MultilineMethodCallIndentation:
Expand Down
9 changes: 5 additions & 4 deletions app/controllers/email_confirmation_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class EmailConfirmationController < ApplicationController
before_action :find_member
before_action :find_payment_methods
before_action :set_payment_methods

def verify
begin
Expand All @@ -21,10 +21,11 @@ def verify
def find_member
raise ActiveRecord::RecordNotFound if params[:email].blank?

@member = Member.find_by_email!(params[:email])
Member.find_by_email!(params[:email])
@member = nil
end

def find_payment_methods
@payment_methods = payment_methods
def set_payment_methods
@payment_methods = []
end
end

0 comments on commit 9508e35

Please sign in to comment.