{"action":"opened","issue":{"url":"https://api.github.com/repos/lwe/simple_enum/issues/100","labels_url":"https://api.github.com/repos/lwe/simple_enum/issues/100/labels{/name}","comments_url":"https://api.github.com/repos/lwe/simple_enum/issues/100/comments","events_url":"https://api.github.com/repos/lwe/simple_enum/issues/100/events","html_url":"https://github.com/lwe/simple_enum/issues/100","id":71163860,"number":100,"title":"Enum.keys returns strings","user":{"login":"matthewrudy","id":8659,"avatar_url":"https://avatars.githubusercontent.com/u/8659?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewrudy","html_url":"https://github.com/matthewrudy","followers_url":"https://api.github.com/users/matthewrudy/followers","following_url":"https://api.github.com/users/matthewrudy/following{/other_user}","gists_url":"https://api.github.com/users/matthewrudy/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewrudy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewrudy/subscriptions","organizations_url":"https://api.github.com/users/matthewrudy/orgs","repos_url":"https://api.github.com/users/matthewrudy/repos","events_url":"https://api.github.com/users/matthewrudy/events{/privacy}","received_events_url":"https://api.github.com/users/matthewrudy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-27T03:17:46Z","updated_at":"2015-04-27T03:17:46Z","closed_at":null,"body":"From your example\r\n\r\n``` ruby\r\nclass User < ActiveRecord::Base\r\n  as_enum :gender, female: 1, male: 0\r\nend\r\n\r\n# expected\r\nuser.gender == :female\r\nuser.genders.key(1) == :female\r\n\r\n# but\r\nuser.genders.keys == [\"male\", \"female\"]\r\n```\r\n\r\nie. the enumerated values always appear as symbols everywhere except when calling `keys`."}}