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

Add ability to apply scope belongs_to #194

Open
westonganger opened this issue Dec 18, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@westonganger
Copy link
Contributor

commented Dec 18, 2014

Basically ActsAsParanoid has the with_delete: true option. With this option I can use the gem with PublicActivity. It would be nice to have such a feature in this gem.

Excerpt from ActsAsParanoid readme under Assoication section:

belongs_to :parent_including_deleted, :class_name => "Parent", foreign_key => 'parent_id', :with_deleted => true

Would be used in the following way:
https://github.com/buffym/public_activity/blob/with_paranoid/lib/public_activity/orm/active_record/activity.rb

@pirj

This comment has been minimized.

Copy link

commented Feb 25, 2016

belongs_to :parent_including_deleted, -> { with_deleted }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.