Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created December 13, 2010 06:34
Show Gist options
  • Save chewmanfoo/738723 to your computer and use it in GitHub Desktop.
Save chewmanfoo/738723 to your computer and use it in GitHub Desktop.
# POST /resource/invitation
def create
# added by jlm 12/13/2010
@carriers = Carrier.all
# end of addition
self.resource = resource_class.send_invitation(params[resource_name])
# added by jlm 12/13/2010
resource.carrier_id = params[:carrier_id]
# end of addition
if resource.errors.empty?
set_flash_message :notice, :send_instructions
redirect_to after_sign_in_path_for(resource_name)
else
render_with_scope :new
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment