Created
March 21, 2017 11:48
-
-
Save bnymn/f75b87a4487d936514311d227be41d69 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 Spree | |
User.class_eval do | |
def active_for_authentication? | |
super && approved? | |
end | |
def inactive_message | |
if !approved? | |
:not_approved | |
else | |
super | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment