-
Notifications
You must be signed in to change notification settings - Fork 31
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
Allow toggling extra features #41
Comments
I agree that it would be nice to use just rein's constraint features. Views don't seem to match the spirit of the gem suggested by the name, and scenic is more full-featured there. @nullobject if you'd like a PR for this I could write something that lets you supply some configuration to enable/disable different bundles of methods, like views, constraints, schemas, and enums, defaulting to everything enabled. Just let me know! |
The other option is to just be as good as scenic (or better) at view
management.
…On Fri, Jul 6, 2018, 12:19 PM Paul A Jungwirth ***@***.***> wrote:
I agree that it would be nice to use just rein's constraint features.
Views don't seem to match the spirit of the gem suggested by the name, and
scenic is more full-featured there. @nullobject
<https://github.com/nullobject> if you'd like a PR for this I could write
something that lets you supply some configuration to enable/disable
different bundles of methods, like views, constraints, schemas, and enums,
defaulting to everything enabled. Just let me know!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#41 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAUb2VHRwBa1QB8g6iMP8YWpBx3miNjBks5uD7hIgaJpZM4U-4jQ>
.
|
Hey there, any updates on this? We've also faced this issue and for now decided to maintain our own fork without views. How about extracting it to Or make |
Been a couple of years, any further thoughts on this @nullobject? It does hamper using other tools like scenic. |
Rein's `create_view` function is extremely rudimentary, and it conflicts with using a more full-featured solution like scenic. Several people have requested to make this optional, but the author is unwilling (nullobject#41). This commit lets you turn off rein's view functions by setting an envvar. This is not as nice as using an initializer, but that would require more extensive changes (mostly because rein adds these functions to `ActiveRecord::Migration` as soon as it gets required, which is before we have loaded Rails configuration, etc. We could make it work by turning rein into a Rails plugin/engine, but I don't want to work on that right now.
create_view
somehow overwrites the scenic gem's version, which is better.The text was updated successfully, but these errors were encountered: