{"action":"opened","issue":{"url":"https://api.github.com/repos/plataformatec/simple_form/issues/1243","labels_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1243/labels{/name}","comments_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1243/comments","events_url":"https://api.github.com/repos/plataformatec/simple_form/issues/1243/events","html_url":"https://github.com/plataformatec/simple_form/issues/1243","id":69047826,"number":1243,"title":"Upgrading from 3.0.3 -> 3.1.0 broke our checkbox inputs","user":{"login":"nickmalcolm","id":342417,"avatar_url":"https://avatars.githubusercontent.com/u/342417?v=3","gravatar_id":"","url":"https://api.github.com/users/nickmalcolm","html_url":"https://github.com/nickmalcolm","followers_url":"https://api.github.com/users/nickmalcolm/followers","following_url":"https://api.github.com/users/nickmalcolm/following{/other_user}","gists_url":"https://api.github.com/users/nickmalcolm/gists{/gist_id}","starred_url":"https://api.github.com/users/nickmalcolm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickmalcolm/subscriptions","organizations_url":"https://api.github.com/users/nickmalcolm/orgs","repos_url":"https://api.github.com/users/nickmalcolm/repos","events_url":"https://api.github.com/users/nickmalcolm/events{/privacy}","received_events_url":"https://api.github.com/users/nickmalcolm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-17T02:19:50Z","updated_at":"2015-04-17T02:19:50Z","closed_at":null,"body":"We use `simple_form` and the [`bitmask_attributes`](https://github.com/joelmoss/bitmask_attributes) gem to let users save their email preferences.\r\n\r\nIn 3.0.3, checkboxes are checked as expected. You can check & uncheck options, and have them saved properly. After upgrading the simple_form gem to 3.1.0, checkboxes which should be checked aren't. (Flicking between the versions makes the bug appear and disappear, so I'm fairly sure it's something here).\r\n\r\nI can't see anything in the CHANGELOG deprecations to indicate anything that might have changed? Perhaps we've always been doing it wrong, and it's only just become an issue?\r\n\r\nI'm not sure the best place to start debugging this, but hopefully we can figure this out.\r\n\r\n**The model**\r\n\r\n    class Customer < ActiveRecord::Base\r\n      ...\r\n      bitmask :email_preferences, :as => [:weekly_digest, :daily_digest, etc]\r\n    end\r\n\r\n**The form**\r\n\r\n      <%= simple_form_for current_customer do |f| %>\r\n        <div class=\"form-inputs\">\r\n          <%= f.input :email_preferences, as: :check_boxes, collection: Customer.values_for_email_preferences, label: \" \" %>\r\n        </div>\r\n\r\n        <div class=\"form-actions\">\r\n          <%= f.button :submit, \"Save Notifications\" %>\r\n        </div>\r\n      <% end %>\r\n"}}