Skip to content

Added additional singleton magic

Pre-release
Pre-release
Compare
Choose a tag to compare
@thornomad thornomad released this 26 Jun 13:56
70b1424

Added ability to get an attribute of an Enumbled record.

Color.black(:id)           # => 1
Color.black(:enum)         # => :black
Color.black(:label)        # => 'black'
Color.black(:graphql_enum) # => 'BLACK'