Created
June 14, 2013 00:58
-
-
Save JamesDullaghan/5778679 to your computer and use it in GitHub Desktop.
Devise Sign in form anywhere in app
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
module HomeHelper | |
def resource_name | |
:user | |
end | |
def resource | |
@resource ||= User.new | |
end | |
def devise_mapping | |
@devise_mapping ||= Devise.mappings[:user] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment