trailblazer / trailblazer-loader

Require concept files, models and more without any autoloading magic.
MIT License
17 stars 23 forks source link

Filtering directories is heavy handed #10

Closed mrGrazy closed 7 years ago

mrGrazy commented 8 years ago

Filtering out any directories with names containing 'view' and 'cell' and 'contract' really interferes with business domain naming.

Our project actually deals with real world contracts, and has another another concept of a 'review'. Both of these cause surprising load errors because trailblazer-loader excludes any directory name containing concept_dir nouns.

Maybe we can change this to only match /^#{concept_dir}s?$/ or something? That would allow prefixes or more specific names to work around reserved words.

apotonick commented 8 years ago

Yeah, good idea! The code is super simple, wanna give it a shot?

mrGrazy commented 8 years ago

Sure, no problem