You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That lib/ directory implements the application use cases, independently from the delivery mechanism (aka the web apps under apps/). While the Lotus slices use something like this:
moduleWebclassApplication < Lotus::Applicationconfiguredomapping# path or blockendendend
The lib part just deals with plain objects and eventually the persistence. So that lib/bookshelf.rb may want to use top level Lotus::Model:
Lotus::Model.configuredomapping# we only have block, but we want path too.end
For instance we may want to load definitions from lib/config/mapping.rb.
Does it makes sense?
When we configure Lotus::Model, it would be great to make
mapping
to accept a path where to find the mapping definitions.We already support this syntax in
lotusrb
for routes definitions.The text was updated successfully, but these errors were encountered: