Created
July 14, 2014 18:25
-
-
Save fabioperrella/26155083c11d45c905e7 to your computer and use it in GitHub Desktop.
logando no SMTP sem CAS
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
app/controllers/panel/base_controller.rb | |
# comentar linha abaixo | |
#before_filter :authenticate_user!, :require_account!, :check_if_enabled | |
before_filter :signin, :authenticate_user!, :require_account!, :check_if_enabled | |
#criar metodo abaixo | |
def signin | |
sign_in(User.first) if current_user.nil? | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment