{"action":"created","issue":{"url":"https://api.github.com/repos/justinfrench/formtastic/issues/1127","labels_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1127/labels{/name}","comments_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1127/comments","events_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1127/events","html_url":"https://github.com/justinfrench/formtastic/issues/1127","id":57069236,"number":1127,"title":"Symbols support is incomplete","user":{"login":"romanbsd","id":49660,"avatar_url":"https://avatars.githubusercontent.com/u/49660?v=3","gravatar_id":"","url":"https://api.github.com/users/romanbsd","html_url":"https://github.com/romanbsd","followers_url":"https://api.github.com/users/romanbsd/followers","following_url":"https://api.github.com/users/romanbsd/following{/other_user}","gists_url":"https://api.github.com/users/romanbsd/gists{/gist_id}","starred_url":"https://api.github.com/users/romanbsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romanbsd/subscriptions","organizations_url":"https://api.github.com/users/romanbsd/orgs","repos_url":"https://api.github.com/users/romanbsd/repos","events_url":"https://api.github.com/users/romanbsd/events{/privacy}","received_events_url":"https://api.github.com/users/romanbsd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-09T18:23:18Z","updated_at":"2015-07-13T02:23:37Z","closed_at":null,"body":"While using with the role_model gem, the following inconsistency has surfaced:\r\n- The user.roles returns a Set of Symbols\r\n- The User.valid_roles is an array of Symbols\r\n\r\nWhile the selected_values (make_selected_values) is an array of Symbols, the Collections#collection converts the User.valid_roles to array of strings because\r\n```ruby\r\n[Array, Fixnum, String].include?(raw_collection.first.class) #-> false\r\n```\r\nAs a workaround, I provide the collection in the form:\r\n```ruby\r\nUser.valid_roles.map { |role| role.to_s.humanize }.zip(User.valid_roles)\r\n```"},"comment":{"url":"https://api.github.com/repos/justinfrench/formtastic/issues/comments/120787790","html_url":"https://github.com/justinfrench/formtastic/issues/1127#issuecomment-120787790","issue_url":"https://api.github.com/repos/justinfrench/formtastic/issues/1127","id":120787790,"user":{"login":"justinfrench","id":5240,"avatar_url":"https://avatars.githubusercontent.com/u/5240?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfrench","html_url":"https://github.com/justinfrench","followers_url":"https://api.github.com/users/justinfrench/followers","following_url":"https://api.github.com/users/justinfrench/following{/other_user}","gists_url":"https://api.github.com/users/justinfrench/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfrench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfrench/subscriptions","organizations_url":"https://api.github.com/users/justinfrench/orgs","repos_url":"https://api.github.com/users/justinfrench/repos","events_url":"https://api.github.com/users/justinfrench/events{/privacy}","received_events_url":"https://api.github.com/users/justinfrench/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T02:23:37Z","updated_at":"2015-07-13T02:23:37Z","body":"@Morred @romanbsd could one of you confirm that the #1160 patch fixes this issue?"}}