module Devise::Controllers::Helpers

def signed_in?(scope)

authentication hooks.
Check if the given scope is signed in session, without running
def signed_in?(scope)
  warden.authenticate?(:scope => scope)
end