Closed kirsha2 closed 1 year ago
Working fine with Ruby version: 3.2.1 Rails: 7.x
please try upgrading RoR version
On Fri, Sep 2, 2022 at 2:14 PM kirsha2 @.***> wrote:
/Users/zuz/.rvm/gems/ruby-3.1.1/gems/activerecord-6.1.6.1/lib/active_record/core.rb:20:in logger=': class variable @@logger of ActiveRecord::Base is overtaken by DataAnon::Utils::Logging (RuntimeError) from /Users/zuz/.rvm/gems/ruby-3.1.1/gems/data-anonymization-0.8.6/lib/utils/logging.rb:14:in logger='
Ruby 3 added new runtime error https://rubyreferences.github.io/rubychanges/3.0.html#changes-in-class-variable-behavior
Ruby version: 3.1.1. Rails: 6.1.6.1
— Reply to this email directly, view it on GitHub https://github.com/sunitparekh/data-anonymization/issues/79, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLNOQD6ERDWMDZXRQ4GKTV4G45ZANCNFSM6AAAAAAQDCEEU4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- thanks & regards, Sunit Parekh +91 99237 00662 @.***
@sunitparekh Does it mean data-anonymization is not compatible with Ruby version: 3.x and Rails: 6.x?
Having this issue also with both Ruby 3.1.3 and Ruby 3.2.0:
RuntimeError:
class variable @@logger of ActiveJob::Base is overtaken by DataAnon::Utils::Logging
Rails v7.0.4.2.
@sunitparekh are you able to reproduce?
I am getting the same issue running
ruby "3.2.1"
gem "rails", "7.0.4.3"
Fixed. Thanks for the pull request.
On Tue, Mar 14, 2023 at 10:19 PM Sami @.***> wrote:
I am getting the same issue running
ruby "3.2.1" gem "rails", "7.0.4.3"
— Reply to this email directly, view it on GitHub https://github.com/sunitparekh/data-anonymization/issues/79#issuecomment-1468464291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABLNOXJ35RSQF3XKU4LE6DW4COR5ANCNFSM6AAAAAAQDCEEU4 . You are receiving this because you were mentioned.Message ID: @.***>
-- thanks & regards, Sunit Parekh +91 99237 00662 @.***
Ruby 3 added new runtime error https://rubyreferences.github.io/rubychanges/3.0.html#changes-in-class-variable-behavior
Ruby version: 3.1.1. Rails: 6.1.6.1