Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No longer recommend inheriting from Struct.new #590

Closed
wants to merge 1 commit into from

Conversation

benjaminoakes
Copy link

Inheriting from Struct.new can lead to this error: "TypeError: superclass mismatch for class SomeJob"

Details: http://www.benjaminoakes.com/2013/10/15/superclass-mismatch-when-inheriting-from-struct-new/

Inheriting from Struct.new can lead to this error: "TypeError: superclass mismatch for class SomeJob"

Details: http://www.benjaminoakes.com/2013/10/15/superclass-mismatch-when-inheriting-from-struct-new/
@coveralls
Copy link

Coverage Status

Coverage decreased (-1.66%) when pulling 861f84e on benjaminoakes:patch-1 into 02c7032 on collectiveidea:master.

@jnimety
Copy link

jnimety commented Oct 15, 2013

seems like good coding style that should be encouraged

@ZachBeta
Copy link

shouldn't break API, looks like a good fix and solves an issue we ran into :-)

@jrunning
Copy link

I've also run into this a few times.

@albus522
Copy link
Member

Sorry I merged #638 first.

@albus522 albus522 closed this Apr 10, 2014
@benjaminoakes
Copy link
Author

No worries, glad to see the the change go in.

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.

6 participants