Skip to content

Added additional attribute helpers for enumbled_to records

Pre-release
Pre-release
Compare
Choose a tag to compare
@thornomad thornomad released this 06 Jul 16:17
dd12749
house = House.create!(color: Color.black)

house.color_label        # => 'black'
house.color_enum         # => :black
house.color_graphql_enum # => 'BLACK'