{"action":"created","issue":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/679","labels_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/679/comments","events_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/679/events","html_url":"https://github.com/tgriesser/bookshelf/issues/679","id":65281483,"number":679,"title":"Temporary, non-persisted attributes","user":{"login":"olalonde","id":416585,"avatar_url":"https://avatars.githubusercontent.com/u/416585?v=3","gravatar_id":"","url":"https://api.github.com/users/olalonde","html_url":"https://github.com/olalonde","followers_url":"https://api.github.com/users/olalonde/followers","following_url":"https://api.github.com/users/olalonde/following{/other_user}","gists_url":"https://api.github.com/users/olalonde/gists{/gist_id}","starred_url":"https://api.github.com/users/olalonde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olalonde/subscriptions","organizations_url":"https://api.github.com/users/olalonde/orgs","repos_url":"https://api.github.com/users/olalonde/repos","events_url":"https://api.github.com/users/olalonde/events{/privacy}","received_events_url":"https://api.github.com/users/olalonde/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-30T19:18:25Z","updated_at":"2015-03-30T19:33:55Z","closed_at":null,"body":"What is the best practice for setting non-persisted / temporary attributes on a model? For example, I have a File model which stores metadata about files but I would like to set a \"readstream\" attribute on the object which I will use during an HTTP request. That readstream should be ignored when model.save() is called."},"comment":{"url":"https://api.github.com/repos/tgriesser/bookshelf/issues/comments/87801261","html_url":"https://github.com/tgriesser/bookshelf/issues/679#issuecomment-87801261","issue_url":"https://api.github.com/repos/tgriesser/bookshelf/issues/679","id":87801261,"user":{"login":"tgriesser","id":154748,"avatar_url":"https://avatars.githubusercontent.com/u/154748?v=3","gravatar_id":"","url":"https://api.github.com/users/tgriesser","html_url":"https://github.com/tgriesser","followers_url":"https://api.github.com/users/tgriesser/followers","following_url":"https://api.github.com/users/tgriesser/following{/other_user}","gists_url":"https://api.github.com/users/tgriesser/gists{/gist_id}","starred_url":"https://api.github.com/users/tgriesser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgriesser/subscriptions","organizations_url":"https://api.github.com/users/tgriesser/orgs","repos_url":"https://api.github.com/users/tgriesser/repos","events_url":"https://api.github.com/users/tgriesser/events{/privacy}","received_events_url":"https://api.github.com/users/tgriesser/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T19:33:55Z","updated_at":"2015-03-30T19:33:55Z","body":"Would setting them directly as properties on the model work? Rather than actually using `.set`?"}}