Skip to content

Conversation

@krisleech
Copy link
Contributor

virtus/lib/virtus/builder.rb:73: warning: method redefined; discarding old attribute
virtus/lib/virtus/builder/hook_context.rb:43: warning: previous definition of attribute was here

This PR silences the above warning by first undefining the method before defining a new one.

I do not know if this is a good tactic. I assume the defined singleton method can not call super anyway, otherwise there would be no warning.

@solnic
Copy link
Owner

solnic commented Feb 16, 2015

Thanks, when does this happen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants