decent_exposure
decent_exposure copied to clipboard
A helper for creating declarative interfaces in controllers
I'd like to have the possibility to expose multiple things once, like: `expose(:pagination, :users) { pagy(User.all) }` https://github.com/ddnexus/pagy, i.e. `@pagy, @records = pagy(Product.all)` returns an array :)
This is just a quick ping to test your appetite for modifications to `decent_exposure` so that it more smoothly supports shallow routes in Rails. I've been working around it for...
Our use case allows for models to be namespaced as we're taking advantage of Rails Multi-Database access. As a result, each database models are namespaced; e.g., `DB1::Tenant`. We also want...