trailblazer / trailblazer-loader

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

Support app/concepts/:namespace/operation/... structure #1

Closed Hermanverschooten closed 8 years ago

Hermanverschooten commented 8 years ago

Currently the loader requires the presence of an operation.rb file. The readme show a structure where you use an operation folder. This supports both.

apotonick commented 8 years ago

Is that fixed with the 0.0.4? Sorry for "ignoring' you! :laughing:

Hermanverschooten commented 8 years ago

Yes and no. It does load the operations fine now. But it somehow does not load the models. But I'll open a ticket for that, and close this PR.

apotonick commented 8 years ago

Are you using trailblazer-rails, too? Because we load the models there. The loader is framework-agnostic and doesn't know about models! Problem is that we can't assume where they sit, and in my dreams, models are packaged in the concept itself, like comment/model.rb.