Created
June 17, 2013 12:24
-
-
Save marcoow/5796491 to your computer and use it in GitHub Desktop.
Rails controller that ensures a user is authenticated
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 AuthenticatedController < ApplicationController | |
ensure_authenticated_user | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment