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
Class.clone yields NoMethodError #69
Comments
@pmn4 wow, good catch! the Do you think you could try bundling with the commit referenced above and see if that sorts it out for you? |
That works! thanks @thetron (admittedly, I did not test the cloning of instances, just classes) |
@pmn4 awesome! Thanks for testing - the instance cloning is/was covered by specs, so we're all good there! |
Hey @thetron, I have some code which clones a class, but for token classes I get an error.
Repro steps:
this line yields a NoMethodError.
I can't tell whether
self.token = nil
is a relic of a previous implementation or I just am missing something. As a work-around, I have addeddef self.token=(*); end
to classes which include mongoid_token, but want to make sure I'm not setting myself up for some headaches down the road.Thanks!
The text was updated successfully, but these errors were encountered: