activerecord-postgres_enum
activerecord-postgres_enum copied to clipboard
Symbols?
My expectation when using this gem was that the values would be automatically returned as symbols, however strings are used by default.
If I submit a pull request that adds the option to have enums be automatically returned as symbols, and make this option configurable and off by default, would that be reasonable, or are you against that line of thinking?
Hi! Sounds good!
Could you give me a really high level brief description of where I could find the part of the code that needs to be changed? I've been poking around the project but haven't yet located the proper entrypoint for this.
If not that's fine -- I'll find it!!
On Tue, Jan 12, 2021 at 1:02 PM Misha Merkushin [email protected] wrote:
Hi! Sounds good!
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bibendi/activerecord-postgres_enum/issues/41#issuecomment-758836014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOE4LK3T7WC3VLURK3LP2DSZSFBZANCNFSM4V7IPV5Q .
I think it is here https://github.com/bibendi/activerecord-postgres_enum/blob/0a1848a3273d5e7d61afb8c22032840dd9019d8d/lib/active_record/postgres_enum/extensions.rb#L7-L14
I have no more guesses :)