Skip to content

Conversation

@seanpdoyle
Copy link
Contributor

Modify the macros defined in ActiveResource::Associations to rely on redefine_method so that repeated declarations replace prior definitions without outputting warnings:

lib/active_resource/associations.rb:145: warning: method redefined; discarding old people
lib/active_resource/associations.rb:145: warning: previous definition of people was here

Modify the macros defined in `ActiveResource::Associations` to rely on
[redefine_method][] so that repeated declarations replace prior
definitions without outputting warnings:

```
lib/active_resource/associations.rb:145: warning: method redefined; discarding old people
lib/active_resource/associations.rb:145: warning: previous definition of people was here
```

[redefine_method]: https://edgeapi.rubyonrails.org/classes/Module.html#method-i-redefine_method
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.

1 participant