You can access the current Appliction via
play.api.Play.current()
to find out the mode try
play.api.Play.current().mode()
or simply use
play.api.Play.isDev(play.api.Play.current())
You can access the current Appliction via
play.api.Play.current()
to find out the mode try
play.api.Play.current().mode()
or simply use
play.api.Play.isDev(play.api.Play.current())