lib/jets/router.rb in jets-0.8.18 vs lib/jets/router.rb in jets-0.9.0

- old
+ new

@@ -28,10 +28,18 @@ put "#{name}/:id", to: "#{name}#update" delete "#{name}/:id", to: "#{name}#delete" end def api_mode? - Jets.config.api_generator + if Jets.config.api_generator + puts <<~EOL.colorize(:yellow) + DEPRECATED: Jets.config.api_generator + Instead, please update your config/application.rb to use: + Jets.config.api_mode + EOL + end + api_mode = Jets.config.api_mode || Jets.config.api_generator + api_mode end def create_route(options) @routes << Route.new(options) end