{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/8553","labels_url":"https://api.github.com/repos/rails/rails/issues/8553/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/8553/comments","events_url":"https://api.github.com/repos/rails/rails/issues/8553/events","html_url":"https://github.com/rails/rails/pull/8553","id":9386483,"number":8553,"title":"Updated #5829: Added --editor (-e) option to open all generated & copied files in the user's editor","user":{"login":"ndbroadbent","id":139536,"avatar_url":"https://avatars.githubusercontent.com/u/139536?v=3","gravatar_id":"","url":"https://api.github.com/users/ndbroadbent","html_url":"https://github.com/ndbroadbent","followers_url":"https://api.github.com/users/ndbroadbent/followers","following_url":"https://api.github.com/users/ndbroadbent/following{/other_user}","gists_url":"https://api.github.com/users/ndbroadbent/gists{/gist_id}","starred_url":"https://api.github.com/users/ndbroadbent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndbroadbent/subscriptions","organizations_url":"https://api.github.com/users/ndbroadbent/orgs","repos_url":"https://api.github.com/users/ndbroadbent/repos","events_url":"https://api.github.com/users/ndbroadbent/events{/privacy}","received_events_url":"https://api.github.com/users/ndbroadbent/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rails/rails/labels/railties","name":"railties","color":"8BE06E"}],"state":"closed","locked":false,"assignee":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"milestone":null,"comments":20,"created_at":"2012-12-18T23:59:56Z","updated_at":"2015-10-30T17:53:54Z","closed_at":"2015-10-30T17:53:54Z","pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/8553","html_url":"https://github.com/rails/rails/pull/8553","diff_url":"https://github.com/rails/rails/pull/8553.diff","patch_url":"https://github.com/rails/rails/pull/8553.patch"},"body":"This is an updated version of #5829, with [@rafaelfranca's proposal to make it higher level](https://github.com/rails/rails/pull/5829#issuecomment-7098334).\r\n\r\nThe `--editor` option is now aliased as `-e`, and is available for all generators that inherit from `Rails::Generators::Base`. The default editor is now `GUI_EDITOR`, and falls back to `EDITOR`.\r\n\r\nIt wraps Thor's `template` and `copy_file` actions, and opens generated/copied files in your text editor if `options[\"editor\"]` is present.\r\n\r\nP.S. I initially tried to just open the main generated files, but I think it's better to just open them all. If you run the model generator, you'll probably want to edit the migration, model, and tests. (Instead of just the model.)\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/152601219","html_url":"https://github.com/rails/rails/pull/8553#issuecomment-152601219","issue_url":"https://api.github.com/repos/rails/rails/issues/8553","id":152601219,"user":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T17:53:54Z","updated_at":"2015-10-30T17:53:54Z","body":"Forcing a rebuild."}}