{"action":"created","issue":{"url":"https://api.github.com/repos/makandra/active_type/issues/34","labels_url":"https://api.github.com/repos/makandra/active_type/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/makandra/active_type/issues/34/comments","events_url":"https://api.github.com/repos/makandra/active_type/issues/34/events","html_url":"https://github.com/makandra/active_type/issues/34","id":60330567,"number":34,"title":"Broken behavior with boolean attributes in rails 4.2","user":{"login":"vevisystems","id":5745095,"avatar_url":"https://avatars.githubusercontent.com/u/5745095?v=3","gravatar_id":"","url":"https://api.github.com/users/vevisystems","html_url":"https://github.com/vevisystems","followers_url":"https://api.github.com/users/vevisystems/followers","following_url":"https://api.github.com/users/vevisystems/following{/other_user}","gists_url":"https://api.github.com/users/vevisystems/gists{/gist_id}","starred_url":"https://api.github.com/users/vevisystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vevisystems/subscriptions","organizations_url":"https://api.github.com/users/vevisystems/orgs","repos_url":"https://api.github.com/users/vevisystems/repos","events_url":"https://api.github.com/users/vevisystems/events{/privacy}","received_events_url":"https://api.github.com/users/vevisystems/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T11:33:31Z","updated_at":"2015-03-09T12:07:54Z","closed_at":null,"body":"After upgrade to rails 4.2, boolean attributes seem to be broken. Even if I do not check a checkbox, it is always interpreted as a \"true\" value. For instance, this validation always passes:\r\n\r\nclass AgreeForm < ActiveType::Object\r\n ....\r\n  attribute :agree, :boolean\r\n  validates :agree, :presence => true\r\nend\r\n\r\nAny clue?\r\n"},"comment":{"url":"https://api.github.com/repos/makandra/active_type/issues/comments/77842050","html_url":"https://github.com/makandra/active_type/issues/34#issuecomment-77842050","issue_url":"https://api.github.com/repos/makandra/active_type/issues/34","id":77842050,"user":{"login":"vevisystems","id":5745095,"avatar_url":"https://avatars.githubusercontent.com/u/5745095?v=3","gravatar_id":"","url":"https://api.github.com/users/vevisystems","html_url":"https://github.com/vevisystems","followers_url":"https://api.github.com/users/vevisystems/followers","following_url":"https://api.github.com/users/vevisystems/following{/other_user}","gists_url":"https://api.github.com/users/vevisystems/gists{/gist_id}","starred_url":"https://api.github.com/users/vevisystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vevisystems/subscriptions","organizations_url":"https://api.github.com/users/vevisystems/orgs","repos_url":"https://api.github.com/users/vevisystems/repos","events_url":"https://api.github.com/users/vevisystems/events{/privacy}","received_events_url":"https://api.github.com/users/vevisystems/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T12:07:54Z","updated_at":"2015-03-09T12:07:54Z","body":"It only happens with mysql database and mysql2 adapter."}}