Explorar el Código

Run app if script called directly

master
Dylan Baker hace 5 años
padre
commit
7a0561e08b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      web/server.rb

+ 2
- 0
web/server.rb Ver fichero

79
       !!session[:user_id]
79
       !!session[:user_id]
80
     end
80
     end
81
   end
81
   end
82
+
83
+  run! if __FILE__ == $0
82
 end
84
 end

Loading…
Cancelar
Guardar