Created
March 31, 2011 01:25
-
-
Save gertig/895655 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class InvitationsController < Devise::InvitationsController | |
include Devise::Controllers::InternalHelpers #not sure if this is necessary | |
# POST /resource/invitation | |
def create | |
#Assuming the user_id of the gifted user is = 1 | |
if current_user.id == 1 | |
current_user.increment!(:invitation_limit) | |
end | |
super | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment