Permalink
Browse files

Extract Class Step One

* Create a new, empty class
* Instantiate it
  • Loading branch information...
jferris committed Feb 14, 2013
1 parent 65f1b42 commit cce33485a45339ca5339bf64f5249f26e92cf485
@@ -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(
@@ -0,0 +1,2 @@
class SurveyInviter
end

0 comments on commit cce3348

Please sign in to comment.