We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Anybody can help me, how we get associate records with_deleted scope
The text was updated successfully, but these errors were encountered:
Hi @jadamdipak , apologies if I'm missing your point here, but you should be able to access the deleted associations per the below:
When creating the association: class User < ActiveRecord::Base; has_many :notifications, -> { with_deleted }; end
class User < ActiveRecord::Base; has_many :notifications, -> { with_deleted }; end
or explicitly User.find(params[:id]).notifications.with_deleted
User.find(params[:id]).notifications.with_deleted
Sorry, something went wrong.
No branches or pull requests
Anybody can help me, how we get associate records with_deleted scope
The text was updated successfully, but these errors were encountered: