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
undefined method `scoped' when use orphan_strategy #301
Comments
Hello @Pogoss |
@kbrock |
Hello @Pogoss I wonder if the example is 3.0 code. rescue Ancestry::AncestryException => exc
@taxons = Taxon.scoped
flash[:alert] = "Taxon #{exc.taxon.downcase}"
render :index
end --Keenan |
@Pogoss did this fix your problem? |
let me know if this is still a problem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using orphan_strategy => :restrict and using this wiki page https://github.com/stefankroes/ancestry/wiki/Using-orphan-restrict
But when i try to destroy parent i'm getting this error: undefined method `scoped'
The text was updated successfully, but these errors were encountered: