Skip to content

Commit

Permalink
Unused action since b4ff3fb
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Mar 9, 2025
1 parent eec9084 commit 4b00b1f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
17 changes: 0 additions & 17 deletions app/controllers/proposals_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ def index
}
end

def finalized_notification
@proposal = proposal # because drapper won't set the instance variable

email_template = case @proposal.state
when Proposal::State::ACCEPTED
'accept_email'
when Proposal::State::REJECTED
'reject_email'
when Proposal::State::WAITLISTED
'waitlist_email'
end

markdown_string = render_to_string "staff/proposal_mailer/#{email_template}", layout: false, formats: :md

@body = Redcarpet::Markdown.new(Redcarpet::Render::HTML).render(markdown_string)
end

def new
if @event.closed?
redirect_to event_path (@event)
Expand Down
1 change: 0 additions & 1 deletion app/views/proposals/finalized_notification.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
member { post :decline }
member { post :update_notes }
member { delete :destroy }
member { get :finalized_notification }
end

get 'parse_edit_field' => 'proposals#parse_edit_field', as: :parse_edit_field_proposal
Expand Down

0 comments on commit 4b00b1f

Please sign in to comment.