{"action":"created","issue":{"url":"https://api.github.com/repos/collectiveidea/audited/issues/271","repository_url":"https://api.github.com/repos/collectiveidea/audited","labels_url":"https://api.github.com/repos/collectiveidea/audited/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/collectiveidea/audited/issues/271/comments","events_url":"https://api.github.com/repos/collectiveidea/audited/issues/271/events","html_url":"https://github.com/collectiveidea/audited/issues/271","id":144517986,"number":271,"title":"Set Username field in the audits while creation","user":{"login":"seemalakishore","id":2456577,"avatar_url":"https://avatars.githubusercontent.com/u/2456577?v=3","gravatar_id":"","url":"https://api.github.com/users/seemalakishore","html_url":"https://github.com/seemalakishore","followers_url":"https://api.github.com/users/seemalakishore/followers","following_url":"https://api.github.com/users/seemalakishore/following{/other_user}","gists_url":"https://api.github.com/users/seemalakishore/gists{/gist_id}","starred_url":"https://api.github.com/users/seemalakishore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seemalakishore/subscriptions","organizations_url":"https://api.github.com/users/seemalakishore/orgs","repos_url":"https://api.github.com/users/seemalakishore/repos","events_url":"https://api.github.com/users/seemalakishore/events{/privacy}","received_events_url":"https://api.github.com/users/seemalakishore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-30T09:31:28Z","updated_at":"2016-04-04T09:04:50Z","closed_at":null,"body":"How can we set user name while creating audits. My application is built using rails_api gem. Though user management is done through devise, I could set the user_id value of logged in user using the below block:\r\n`Audited.audit_class.as_user(logged_in_user) do\r\nend `\r\nI want to **set the username field as well during audit creation**, because finding username based on the user_id in each audit is cumbersome process while displaying, as it is not direct column and though database fetching should be done for each audit's username."},"comment":{"url":"https://api.github.com/repos/collectiveidea/audited/issues/comments/205203383","html_url":"https://github.com/collectiveidea/audited/issues/271#issuecomment-205203383","issue_url":"https://api.github.com/repos/collectiveidea/audited/issues/271","id":205203383,"user":{"login":"seemalakishore","id":2456577,"avatar_url":"https://avatars.githubusercontent.com/u/2456577?v=3","gravatar_id":"","url":"https://api.github.com/users/seemalakishore","html_url":"https://github.com/seemalakishore","followers_url":"https://api.github.com/users/seemalakishore/followers","following_url":"https://api.github.com/users/seemalakishore/following{/other_user}","gists_url":"https://api.github.com/users/seemalakishore/gists{/gist_id}","starred_url":"https://api.github.com/users/seemalakishore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seemalakishore/subscriptions","organizations_url":"https://api.github.com/users/seemalakishore/orgs","repos_url":"https://api.github.com/users/seemalakishore/repos","events_url":"https://api.github.com/users/seemalakishore/events{/privacy}","received_events_url":"https://api.github.com/users/seemalakishore/received_events","type":"User","site_admin":false},"created_at":"2016-04-04T09:04:50Z","updated_at":"2016-04-04T09:04:50Z","body":"@danielmorrison : Expecting a quick reply"}}