I'm tring to do something basic in Padrino, but lots of searching hasn't come up with any answers. I'm trying to access a global setting from a model. I have added a line to the "development" section of the environments.yaml file called "endpoint", how do I access this setting from a model class? Is environments.yaml the best file to use for this kind of setting?
environments:
development:
endpoint: 'http://192.168.56.1:3001'
When I try using "settings.endpoint" in a model function, I get the error:
undefined local variable or method `settings' for Country:Class