{"action":"created","issue":{"url":"https://api.github.com/repos/ytti/oxidized/issues/1554","repository_url":"https://api.github.com/repos/ytti/oxidized","labels_url":"https://api.github.com/repos/ytti/oxidized/issues/1554/labels{/name}","comments_url":"https://api.github.com/repos/ytti/oxidized/issues/1554/comments","events_url":"https://api.github.com/repos/ytti/oxidized/issues/1554/events","html_url":"https://github.com/ytti/oxidized/issues/1554","id":363907837,"node_id":"MDU6SXNzdWUzNjM5MDc4Mzc=","number":1554,"title":"prompt cannot change when extend models","user":{"login":"trisight","id":141975,"node_id":"MDQ6VXNlcjE0MTk3NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141975?v=4","gravatar_id":"","url":"https://api.github.com/users/trisight","html_url":"https://github.com/trisight","followers_url":"https://api.github.com/users/trisight/followers","following_url":"https://api.github.com/users/trisight/following{/other_user}","gists_url":"https://api.github.com/users/trisight/gists{/gist_id}","starred_url":"https://api.github.com/users/trisight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trisight/subscriptions","organizations_url":"https://api.github.com/users/trisight/orgs","repos_url":"https://api.github.com/users/trisight/repos","events_url":"https://api.github.com/users/trisight/events{/privacy}","received_events_url":"https://api.github.com/users/trisight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T08:15:11Z","updated_at":"2018-09-26T09:11:10Z","closed_at":"2018-09-26T09:11:10Z","author_association":"NONE","body":"in model.rb, prompt is writed once only. so, the code follow is not working\r\n\r\n```\r\nrequire 'oxidized/model/vrp.rb'\r\n\r\nclass VRP\r\n\r\n  prompt /^(<[\\w#.-]+>)$/\r\n\r\nend\r\n```\r\n\r\nwe changed model.rb to enable prompt override(patch followed), or there is a better way?\r\n\r\n```\r\ndiff --git a/lib/oxidized/model/model.rb b/lib/oxidized/model/model.rb\r\nindex 8bded03..32bcd4e 100644\r\n--- a/lib/oxidized/model/model.rb\r\n+++ b/lib/oxidized/model/model.rb\r\n@@ -22,7 +22,7 @@ module Oxidized\r\n       end\r\n \r\n       def prompt _prompt = nil\r\n-        @prompt or @prompt = _prompt\r\n+        @prompt = _prompt\r\n       end\r\n \r\n       def cfg *methods, **args, &block\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ytti/oxidized/issues/comments/424643565","html_url":"https://github.com/ytti/oxidized/issues/1554#issuecomment-424643565","issue_url":"https://api.github.com/repos/ytti/oxidized/issues/1554","id":424643565,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDY0MzU2NQ==","user":{"login":"trisight","id":141975,"node_id":"MDQ6VXNlcjE0MTk3NQ==","avatar_url":"https://avatars0.githubusercontent.com/u/141975?v=4","gravatar_id":"","url":"https://api.github.com/users/trisight","html_url":"https://github.com/trisight","followers_url":"https://api.github.com/users/trisight/followers","following_url":"https://api.github.com/users/trisight/following{/other_user}","gists_url":"https://api.github.com/users/trisight/gists{/gist_id}","starred_url":"https://api.github.com/users/trisight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trisight/subscriptions","organizations_url":"https://api.github.com/users/trisight/orgs","repos_url":"https://api.github.com/users/trisight/repos","events_url":"https://api.github.com/users/trisight/events{/privacy}","received_events_url":"https://api.github.com/users/trisight/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T09:11:10Z","updated_at":"2018-09-26T09:11:10Z","author_association":"NONE","body":"redefined a new class, close it anyway."}}
{"actor":{"display_login":"trisight"}}