What's the best way around this?
I have a scheduled task that runs outside of S scope and need to access the value of a country field on a Mapper object. When I try to print the value of the country field, I get an error:
"Attempted to use resource bundles outside of an initialized S scope. S only usable when initialized, such as during request processing. Did you call S.? from Boot?"
I've noticed the same error when I try to call toString on the value of a country field from inside a util.Schedule(() => { println(locationInstance.country.is.toString) }).
I just updated from 2.4 to 2.5-RC5 and have not had this error before now.
I'm guessing I'll have to write my own MappedCountry implementation...