Designs for 2.0 base class #430
jhollinger
started this conversation in
General
Replies: 2 comments 7 replies
-
What would it looks like?We could do it flashy like ActiveRecord migrations: class MyBlueprint < Blueprinter[2.0]
...
end Or in a more boring, obvious way (sometimes boring is good): class MyBlueprint < Blueprinter::V2
...
end |
Beta Was this translation helpful? Give feedback.
2 replies
-
How far should V2 be allowed to diverge?A share-nothing approach (at least for the public API) would allow for more innovation. But if it's too different, it could hamper adoption. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As discussed elsewhere, one option for easing into 2.0 would be to allow a Blueprint to decide if it inherits from a 1.0 base class or a 2.0 one, allowing them to co-exist.
Open questions:
Beta Was this translation helpful? Give feedback.
All reactions