{"action":"opened","issue":{"url":"https://api.github.com/repos/sdsykes/slim_scrooge/issues/29","labels_url":"https://api.github.com/repos/sdsykes/slim_scrooge/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/sdsykes/slim_scrooge/issues/29/comments","events_url":"https://api.github.com/repos/sdsykes/slim_scrooge/issues/29/events","html_url":"https://github.com/sdsykes/slim_scrooge/issues/29","id":71660041,"number":29,"title":"read_attribute doesnt work with Rails 3.2.15","user":{"login":"bhushangahire","id":8351,"avatar_url":"https://avatars.githubusercontent.com/u/8351?v=3","gravatar_id":"","url":"https://api.github.com/users/bhushangahire","html_url":"https://github.com/bhushangahire","followers_url":"https://api.github.com/users/bhushangahire/followers","following_url":"https://api.github.com/users/bhushangahire/following{/other_user}","gists_url":"https://api.github.com/users/bhushangahire/gists{/gist_id}","starred_url":"https://api.github.com/users/bhushangahire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhushangahire/subscriptions","organizations_url":"https://api.github.com/users/bhushangahire/orgs","repos_url":"https://api.github.com/users/bhushangahire/repos","events_url":"https://api.github.com/users/bhushangahire/events{/privacy}","received_events_url":"https://api.github.com/users/bhushangahire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-28T18:04:42Z","updated_at":"2015-04-28T18:04:42Z","closed_at":null,"body":"I have a code in model to update column to have custom text appended.\r\n\r\ndef name\r\n   read_attribute(:name) + \" (N)\" if read_attribute(:name).present?\r\nend\r\n\r\nIts not working with this plugin. \r\nIs it bcas its not compatible with rails 3.2 or I can fix it with minor code change? \r\n\r\nActiveRecord::StatementInvalid - Mysql2::Error: Unknown column '174' in 'where clause': SELECT `markets`.`name`,`markets`.`division_id`,`markets`.`active`,`markets`.`creator_id`,`markets`.`updater_id`,`markets`.`created_at`,`markets`.`updated_at`,`markets`.`market_type`,`markets`.`short_name`,`markets`.`time_zone_id`,`markets`.`region_id`,`markets`.`country_id`,`markets`.`state_id`,`markets`.`id` FROM `markets` WHERE `id` IN (`174`,`197`):\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/abstract_adapter.rb:285:in `rescue in log'\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:245:in `execute'\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/mysql2_adapter.rb:213:in `execute'\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `exec_query'\r\n  activerecord (3.2.15) lib/active_record/connection_adapters/mysql2_adapter.rb:226:in `select'\r\n  slim_scrooge (1.0.14) lib/slim_scrooge/result_set.rb:29:in `reload!'\r\n  slim_scrooge (1.0.14) lib/slim_scrooge/monitored_hash.rb:32:in `new_column_access'\r\n  slim_scrooge (1.0.14) lib/slim_scrooge/monitored_hash.rb:19:in `block in []'\r\n"}}