Instead of being
nil when no user is signed in, Sorcery uses an explicit
false value, no
nil. In your
app/controllers/application_controller.rb add this:
def current_user UserDecorator.decorate(super) unless super == false end
I’m using the most recent version of Draper by the way.
If you're seeing this message you've probably enabled some form of adblocker. I respect that.
I use this space to show recommended books on Amazon.com in relation to the post you just read. This generates a small income that allows me to buy a book every now and then.