You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I create the behavior using forest, in development I get ArgumentError Exception: A copy of Behavior has been removed from the module tree but is still active!, in production I just get "Unknown Error". I have noticed that if I prepend every model with :: (i.e. ::EngagementQuestion) I can at least get past this, but it still fails because the behavior contains translations that are automatically created by the globalize gem in a separate callback, and this fails as well (I'm assuming for the same reason)
Context
Package Version: 6.6.2
Rails Version: 5.2
Database Dialect: PostgreSQL
Database Version: 12
The text was updated successfully, but these errors were encountered:
Expected behavior
Referencing related models in callbacks doesn't cause any issues.
Actual behavior
I have a method in a model
Behavior
that creates related records that is called in anafter_create
callback.Whenever I create the behavior using forest, in development I get
ArgumentError Exception: A copy of Behavior has been removed from the module tree but is still active!
, in production I just get "Unknown Error". I have noticed that if I prepend every model with::
(i.e.::EngagementQuestion)
I can at least get past this, but it still fails because the behavior contains translations that are automatically created by theglobalize
gem in a separate callback, and this fails as well (I'm assuming for the same reason)Context
The text was updated successfully, but these errors were encountered: