Skip to content

Commit

Permalink
Extract Class Step One
Browse files Browse the repository at this point in the history
* Create a new, empty class
* Instantiate it
  • Loading branch information
jferris committed Feb 14, 2013
1 parent 65f1b42 commit cce3348
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions example_app/app/controllers/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def new

def create
@survey = Survey.find(params[:survey_id])
@survey_inviter = SurveyInviter.new
if valid_recipients? && valid_message?
recipient_list.each do |email|
invitation = Invitation.create(
Expand Down
2 changes: 2 additions & 0 deletions example_app/app/models/survey_inviter.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class SurveyInviter
end

0 comments on commit cce3348

Please sign in to comment.