-
-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path glob to mapper files #245
Comments
I like the idea to separate in several files the mapping, because in big applications the mapping will be big. what do you think @lotus/core-team ? |
@AlfonsoUceda I do like this idea too, I even think that having |
👍 |
On second look, doing multiple |
As of v0.7.0 we don't support global |
Hi!
Organize my mapping files I separate mapping in many files that makes sense for me. So I created a main mapping file that it got all path, as following:
It works very well, but it more redundancy for each mapping I will need putting these files in main mapping file.
My suggestion if will be possible use a glob path in main file. For instance, my file could be more elegant as following:
I saw that it is not possible at the moment, because the
Config::Model
(https://github.com/lotus/model/blob/master/lib/lotus/model/config/mapper.rb#L34) try get a realpath.If guys agree with me, I will implement it refactoring the code.
The text was updated successfully, but these errors were encountered: