Created
December 13, 2010 06:34
-
-
Save chewmanfoo/738723 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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