Shopify / tapioca

The swiss army knife of RBI generation
MIT License
701 stars 115 forks source link

Refactor DSL compiler options to be a flat namespaced hash and document them #1931

Closed paracycle closed 1 month ago

paracycle commented 1 month ago

I've been thinking about this for a while, and I think namespacing compiler options was a little heavy handed. I've been thinking about cases where a single option might need to be consumed by multiple Active Record compilers, so I think it makes more sense to have a flat hash of options that can be consumed by any compiler.

This makes the code simpler and makes it easier to pass these options on the command line interface, as well.

I've also used this opportunity to improve the documentation, as promised