Created
February 17, 2018 19:33
-
-
Save rodolfopeixoto/dbeef142224a02203db594b29861c4bd 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
module DeviseHelper | |
def resource_name | |
:usuario | |
end | |
def resource | |
@resource ||= Usuario.new | |
end | |
def devise_mapping | |
@devise_mapping ||= Devise.mappings[:usuario] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment