Open borisrorsvort opened 1 year ago
Hey @borisrorsvort,
thanks. Sure I would welcome such addition to the code if it only changes the name of the getter and setter methods.
Your above example would generate
voting_options_type
voting_options_type=
instead of
type
type=
correct?
yes! but it would still be stored as type inside the json on the column voting_options.
Would it be possible to introduce prefix/suffix options for attribute names in jsonb_accessor? This would allow developers to write more concise and readable code, particularly when dealing with multiple attributes.
For example, instead of writing:
we could have:
This addition would not only streamline code but also maintain readability and ease of maintenance.
I understand the complexities involved in maintaining an open-source project and adding new features. If this suggestion aligns with your vision for the gem, I'd be delighted to see it implemented.