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.
Want to keep reading and learn more? I've got you
covered with a hand picked selection of awesome books.