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

Fix Compatibility Issue with Audited Gem and Globalize Gem #813

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mohamadzoh
Copy link

When attempting to install the Audited gem after the Globalize gem, you may encounter the following error:

ruby
Copy code
undefined local variable or method 'globalize_serialized_attributes' for Audited::Audit:Class
This error occurs because the Audited gem is trying to access the globalize_serialized_attributes method, which is undefined in the context of the Audited gem.

Error Message
(called from block (2 levels) in require at C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/bundler/runtime.rb:60)
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activerecord-7.1.1/lib/active_record/dynamic_matchers.rb:22:in method_missing': undefined local variable or method globalize_serialized_attributes' for Audited::Audit:Class

Mohamad Al Zohbie added 2 commits November 4, 2023 23:34
facing issue when trying to install audited gem after globalize gem because gem trying to access undefined methods

``` (called from block (2 levels) in require at C:/Ruby32-x64/lib/ruby/site_ruby/3.2.0/bundler/runtime.rb:60)
C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/activerecord-7.1.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined local variable or method `globalize_serialized_attributes' for Audited::Audit:Class ```
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

Successfully merging this pull request may close these issues.

None yet

1 participant