{"action":"opened","issue":{"url":"https://api.github.com/repos/lessonly/lessonly.github.io/issues/48","repository_url":"https://api.github.com/repos/lessonly/lessonly.github.io","labels_url":"https://api.github.com/repos/lessonly/lessonly.github.io/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/lessonly/lessonly.github.io/issues/48/comments","events_url":"https://api.github.com/repos/lessonly/lessonly.github.io/issues/48/events","html_url":"https://github.com/lessonly/lessonly.github.io/issues/48","id":151939857,"number":48,"title":"The form object pattern: Should we use it? Lets discuss","user":{"login":"joshmfrankel","id":956570,"avatar_url":"https://avatars.githubusercontent.com/u/956570?v=3","gravatar_id":"","url":"https://api.github.com/users/joshmfrankel","html_url":"https://github.com/joshmfrankel","followers_url":"https://api.github.com/users/joshmfrankel/followers","following_url":"https://api.github.com/users/joshmfrankel/following{/other_user}","gists_url":"https://api.github.com/users/joshmfrankel/gists{/gist_id}","starred_url":"https://api.github.com/users/joshmfrankel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshmfrankel/subscriptions","organizations_url":"https://api.github.com/users/joshmfrankel/orgs","repos_url":"https://api.github.com/users/joshmfrankel/repos","events_url":"https://api.github.com/users/joshmfrankel/events{/privacy}","received_events_url":"https://api.github.com/users/joshmfrankel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-29T18:31:33Z","updated_at":"2016-04-29T18:31:33Z","closed_at":null,"body":"@lessonly/developers \r\n\r\nWhile working through bulk user import, Steve mentioned that this piece of our codebase utilizes the Form Object pattern. Notably, this is the only part of our codebase at this time that implements this pattern. As the application and feature set grows it may become necessary to use this or another similar pattern (I'm thinking this might be useful for reports potentially). My suggestion is that if the team finds value in this pattern that it be added to our Ruby style guide.\r\n\r\nHere are a couple of questions I had to get the ball rolling:\r\n* Was this pattern successful with Bulk User Import? Why / why not?\r\n* Is this something we would potentially reach for using on other features in the future?\r\n* Is there an alternative pattern?\r\n\r\n[Form Object Pattern](https://robots.thoughtbot.com/activemodel-form-objects)\r\n[Github discussion](https://github.com/lessonly/lesson.ly/pull/2306#discussion_r61486509)"}}