{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/22790","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/22790/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/22790/comments","events_url":"https://api.github.com/repos/rails/rails/issues/22790/events","html_url":"https://github.com/rails/rails/pull/22790","id":123873263,"number":22790,"title":"Reuse generator options used while creating app for updating Rails versions","user":{"login":"prathamesh-sonpatki","id":621238,"avatar_url":"https://avatars.githubusercontent.com/u/621238?v=3","gravatar_id":"","url":"https://api.github.com/users/prathamesh-sonpatki","html_url":"https://github.com/prathamesh-sonpatki","followers_url":"https://api.github.com/users/prathamesh-sonpatki/followers","following_url":"https://api.github.com/users/prathamesh-sonpatki/following{/other_user}","gists_url":"https://api.github.com/users/prathamesh-sonpatki/gists{/gist_id}","starred_url":"https://api.github.com/users/prathamesh-sonpatki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prathamesh-sonpatki/subscriptions","organizations_url":"https://api.github.com/users/prathamesh-sonpatki/orgs","repos_url":"https://api.github.com/users/prathamesh-sonpatki/repos","events_url":"https://api.github.com/users/prathamesh-sonpatki/events{/privacy}","received_events_url":"https://api.github.com/users/prathamesh-sonpatki/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/railties","name":"railties","color":"8BE06E"}],"state":"open","locked":false,"assignee":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"milestone":null,"comments":33,"created_at":"2015-12-25T10:54:25Z","updated_at":"2016-03-03T13:11:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/22790","html_url":"https://github.com/rails/rails/pull/22790","diff_url":"https://github.com/rails/rails/pull/22790.diff","patch_url":"https://github.com/rails/rails/pull/22790.patch"},"body":"- Saves all the options passed while creating new app into `.rails`\r\n  file.\r\n- Reuses these options when `rake rails:update` is run.\r\n- A sample `.rails` file - https://gist.github.com/prathamesh-sonpatki/dec79cf253ed7e5dc6ee"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/191754674","html_url":"https://github.com/rails/rails/pull/22790#issuecomment-191754674","issue_url":"https://api.github.com/repos/rails/rails/issues/22790","id":191754674,"user":{"login":"senny","id":5402,"avatar_url":"https://avatars.githubusercontent.com/u/5402?v=3","gravatar_id":"","url":"https://api.github.com/users/senny","html_url":"https://github.com/senny","followers_url":"https://api.github.com/users/senny/followers","following_url":"https://api.github.com/users/senny/following{/other_user}","gists_url":"https://api.github.com/users/senny/gists{/gist_id}","starred_url":"https://api.github.com/users/senny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senny/subscriptions","organizations_url":"https://api.github.com/users/senny/orgs","repos_url":"https://api.github.com/users/senny/repos","events_url":"https://api.github.com/users/senny/events{/privacy}","received_events_url":"https://api.github.com/users/senny/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T13:11:44Z","updated_at":"2016-03-03T13:11:44Z","body":"\"Hiding\" it in `config/application.rb` is fine for me as well. I can see the appeal of having us detect the flags based on the current state of the project. I too sometimes modify certain configs after generating the application. Having a comment that I can modify in advance would also solve part of that issue.\r\n\r\n`--api` was not the main motivation for me. It happens a lot when running `bin/rake rails:update` that it adds back stuff that you didn't want to use in the first place `--skip-spring` comes to mind."}}