Created
March 13, 2014 05:49
-
-
Save itamar/9522496 to your computer and use it in GitHub Desktop.
application_controller - capture_referral method
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
| before_filter :capture_referral | |
| private | |
| def capture_referral | |
| session[:referral] = params[:referral] if params[:referral] | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment