{"action":"closed","issue":{"url":"https://api.github.com/repos/orgsync/active_interaction/issues/413","repository_url":"https://api.github.com/repos/orgsync/active_interaction","labels_url":"https://api.github.com/repos/orgsync/active_interaction/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/orgsync/active_interaction/issues/413/comments","events_url":"https://api.github.com/repos/orgsync/active_interaction/issues/413/events","html_url":"https://github.com/orgsync/active_interaction/issues/413","id":222095554,"number":413,"title":"String Filter doesn't convert field values to strings automatically","user":{"login":"kraytruthg","id":907173,"avatar_url":"https://avatars3.githubusercontent.com/u/907173?v=3","gravatar_id":"","url":"https://api.github.com/users/kraytruthg","html_url":"https://github.com/kraytruthg","followers_url":"https://api.github.com/users/kraytruthg/followers","following_url":"https://api.github.com/users/kraytruthg/following{/other_user}","gists_url":"https://api.github.com/users/kraytruthg/gists{/gist_id}","starred_url":"https://api.github.com/users/kraytruthg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraytruthg/subscriptions","organizations_url":"https://api.github.com/users/kraytruthg/orgs","repos_url":"https://api.github.com/users/kraytruthg/repos","events_url":"https://api.github.com/users/kraytruthg/events{/privacy}","received_events_url":"https://api.github.com/users/kraytruthg/received_events","type":"User","site_admin":false},"labels":[{"id":45221851,"url":"https://api.github.com/repos/orgsync/active_interaction/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-17T09:07:17Z","updated_at":"2017-04-21T06:46:29Z","closed_at":"2017-04-21T06:46:29Z","body":"Hi there,\r\n\r\nI run into a problem with `String` filter.\r\nLet's say for `User` model, we have a `string` column called `age`.\r\n\r\nWe can do it in rails:\r\n```\r\n User.create(age: 21)\r\n```\r\n\r\nBut we can't do the same thing with interaction\r\n```\r\nclass UserCreate < ActiveInteraction::Base\r\n  string :age\r\n\r\n  def execute\r\n    User.create(age: age)\r\n  end\r\nend\r\n\r\nUserCreate.run(age: 21).errors.messages\r\n=> {:age=>[\"is not a valid string\"]}\r\n```\r\n\r\nHow do you think about adding auto cast feature to String filter?"}}
{"actor":{"display_login":"kraytruthg"}}