{"action":"created","issue":{"url":"https://api.github.com/repos/solnic/virtus/issues/309","labels_url":"https://api.github.com/repos/solnic/virtus/issues/309/labels{/name}","comments_url":"https://api.github.com/repos/solnic/virtus/issues/309/comments","events_url":"https://api.github.com/repos/solnic/virtus/issues/309/events","html_url":"https://github.com/solnic/virtus/issues/309","id":56590381,"number":309,"title":"Modify attribute options after definition","user":{"login":"fgarcia","id":253157,"avatar_url":"https://avatars.githubusercontent.com/u/253157?v=3","gravatar_id":"","url":"https://api.github.com/users/fgarcia","html_url":"https://github.com/fgarcia","followers_url":"https://api.github.com/users/fgarcia/followers","following_url":"https://api.github.com/users/fgarcia/following{/other_user}","gists_url":"https://api.github.com/users/fgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/fgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgarcia/subscriptions","organizations_url":"https://api.github.com/users/fgarcia/orgs","repos_url":"https://api.github.com/users/fgarcia/repos","events_url":"https://api.github.com/users/fgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/fgarcia/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-04T21:29:49Z","updated_at":"2015-02-06T15:12:37Z","closed_at":"2015-02-04T22:10:55Z","body":"I am trying to modify on runtime already defined attributes. However the modified options are ignored. \r\n\r\nSee gist https://gist.github.com/fgarcia/80449b6d2754e66f557d\r\n\r\nIs this supposed to be possible? I also played with `Virtus.finalize` without much success.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/solnic/virtus/issues/comments/73250930","html_url":"https://github.com/solnic/virtus/issues/309#issuecomment-73250930","issue_url":"https://api.github.com/repos/solnic/virtus/issues/309","id":73250930,"user":{"login":"fgarcia","id":253157,"avatar_url":"https://avatars.githubusercontent.com/u/253157?v=3","gravatar_id":"","url":"https://api.github.com/users/fgarcia","html_url":"https://github.com/fgarcia","followers_url":"https://api.github.com/users/fgarcia/followers","following_url":"https://api.github.com/users/fgarcia/following{/other_user}","gists_url":"https://api.github.com/users/fgarcia/gists{/gist_id}","starred_url":"https://api.github.com/users/fgarcia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgarcia/subscriptions","organizations_url":"https://api.github.com/users/fgarcia/orgs","repos_url":"https://api.github.com/users/fgarcia/repos","events_url":"https://api.github.com/users/fgarcia/events{/privacy}","received_events_url":"https://api.github.com/users/fgarcia/received_events","type":"User","site_admin":false},"created_at":"2015-02-06T15:12:37Z","updated_at":"2015-02-06T15:12:37Z","body":"Normally I reserve inheritance to restrict the nature/type of a class. In my case I have the \"Behaviour Domain Object\" species and the \"Simple State Holder Model\" species. \r\n\r\nThat both of them can share a similar subset of attributes is just an orthogonal concept, where I do prefer to use mixins. \r\n\r\nIn my current case the inheritance slot is already reserved, but will reevaluate. Also I was concerned about inherited attributes being frozen... \r\n\r\n...or maybe I just took the long road of introspection for the fun exploring Virtus since it is a long time I thought about a custom DSL to copy/redefine/imitate Virtus objects that \"mostly\" resemble an existing one."}}