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

undefined method `criteria' for class PublicActivity::Activity using MongoID #390

Open
jakepham90 opened this issue Aug 2, 2024 · 1 comment

Comments

@jakepham90
Copy link

I got an undefined method when trying to create an object that is currently being tracked while using Mongoid.
Using Rails 7.1.3
Ruby 3.3.3
public_activity the latest version.
Screenshot 2024-08-02 at 6 08 45 AM

class Lead
include Mongoid::Document
include PublicActivity::Model
tracked
belongs_to :user
has_many :lead_messages
has_many :campaign_user_lists
accepts_nested_attributes_for :lead_messages

@ur5us
Copy link
Collaborator

ur5us commented Oct 3, 2024

@jakepham90 Indeed, there’s no such method defined by the gem. It could be our outdated Mongo integration. I just had a quick look at the Mongoid gem and #criteria is seems to be used in many places there. Could you try to submit a PR?

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

No branches or pull requests

2 participants