What if we put this in the validators folder. We won't ever add it to a
config folder I don't think. Then you can just load relative to __FILE__.



On Mon, Aug 26, 2013 at 9:52 AM, Phil Servedio <notifications@github.com>wrote:

> In lib/lint/base_validator.rb:
>
> > +    attr_reader :secondary_descriptor_keys
> > +    attr_accessor :registry
> > +    cattr_accessor :validator_subclasses
> > +
> > +    self.validator_subclasses = {}
> > +
> > +    def initialize( registry = {})
> > +      @warnings = []
> > +      @errors = []
> > +      @registry = registry
> > +      setup_internationalization_
> messages
> > +    end
> > +
> > +    # here we use il8n to spit out all error and warning messages found in config/llocales/eng.yml
> > +    def setup_internationalization_messages
> > +      I18n.load_path = [File.dirname(__FILE__)+'/../../config/locales/eng.yml']
>
> Can't think of a better way yet. It is loading relative to the location of
> the source file, so it is fairly established.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mdsol/crichton/pull/34/files#r5982516>
> .
>