{"action":"created","issue":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/573","labels_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/573/comments","events_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/573/events","html_url":"https://github.com/rsim/oracle-enhanced/issues/573","id":68798655,"number":573,"title":"Y/N boolean values are read incorrectly in Rails 4.2","user":{"login":"edwagner","id":19297,"avatar_url":"https://avatars.githubusercontent.com/u/19297?v=3","gravatar_id":"","url":"https://api.github.com/users/edwagner","html_url":"https://github.com/edwagner","followers_url":"https://api.github.com/users/edwagner/followers","following_url":"https://api.github.com/users/edwagner/following{/other_user}","gists_url":"https://api.github.com/users/edwagner/gists{/gist_id}","starred_url":"https://api.github.com/users/edwagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwagner/subscriptions","organizations_url":"https://api.github.com/users/edwagner/orgs","repos_url":"https://api.github.com/users/edwagner/repos","events_url":"https://api.github.com/users/edwagner/events{/privacy}","received_events_url":"https://api.github.com/users/edwagner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-15T22:14:27Z","updated_at":"2015-04-20T01:23:54Z","closed_at":null,"body":"When emulate_booleans_from_strings = true, my 'Y' values are read as false. These columns used to work in my Rails 3 app, and I can't figure out exactly what changed in the upgrade to Rails 4.2 (using the rails42 branch of oracle_enhanced_adapter) that caused them to stop working. I've gotten around this by including this in an initializer:\r\n```ruby\r\nActiveRecord::ConnectionAdapters::Column::FALSE_VALUES << 'N'\r\nActiveRecord::ConnectionAdapters::Column::TRUE_VALUES << 'Y'\r\n```\r\nI'm not sure if this logic belongs in oracle_enhanced_adapter or in active_record, but it seems like since oracle_enhanced_adapter has specific logic for turning true/false into Y/N when writing to the database, it ought to have the logic for translating Y/N to true/false when reading too."},"comment":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/comments/94332241","html_url":"https://github.com/rsim/oracle-enhanced/issues/573#issuecomment-94332241","issue_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/573","id":94332241,"user":{"login":"yahonda","id":73684,"avatar_url":"https://avatars.githubusercontent.com/u/73684?v=3","gravatar_id":"","url":"https://api.github.com/users/yahonda","html_url":"https://github.com/yahonda","followers_url":"https://api.github.com/users/yahonda/followers","following_url":"https://api.github.com/users/yahonda/following{/other_user}","gists_url":"https://api.github.com/users/yahonda/gists{/gist_id}","starred_url":"https://api.github.com/users/yahonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahonda/subscriptions","organizations_url":"https://api.github.com/users/yahonda/orgs","repos_url":"https://api.github.com/users/yahonda/repos","events_url":"https://api.github.com/users/yahonda/events{/privacy}","received_events_url":"https://api.github.com/users/yahonda/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T01:23:54Z","updated_at":"2015-04-20T01:23:54Z","body":"Thanks for the info. Let me review."}}