module RansackMemory::Concern

def clear_sessions

controller method, useful when you want to clear sessions when sign into another user
def clear_sessions
  session.keys.each do |key|
    session.delete(key) if key =~ /ranmemory_/
  end
end