Skip to content

Commit cce3348

Browse files
committed
Extract Class Step One
* Create a new, empty class * Instantiate it
1 parent 65f1b42 commit cce3348

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

example_app/app/controllers/invitations_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ def new
77

88
def create
99
@survey = Survey.find(params[:survey_id])
10+
@survey_inviter = SurveyInviter.new
1011
if valid_recipients? && valid_message?
1112
recipient_list.each do |email|
1213
invitation = Invitation.create(
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class SurveyInviter
2+
end

0 commit comments

Comments
 (0)