lib/jets/application.rb in jets-1.9.3 vs lib/jets/application.rb in jets-1.9.4

- old
+ new

@@ -334,15 +334,14 @@ # for scaffolding to work. def routes @router ||= Jets::Router.new end - def load_routes - reload = Jets.env.development? - @router = nil if reload # clear_routes + def load_routes(refresh: false) + @router = nil if refresh # clear_routes routes_file = "#{Jets.root}/config/routes.rb" - if reload + if refresh load routes_file # always evaluate else require routes_file # evaluate once end end