audited icon indicating copy to clipboard operation
audited copied to clipboard

Ruby 2.7.5 Issues with Audited 5

Open x9sim9 opened this issue 3 years ago • 5 comments

Having multiple issues with audited 5 with ruby 2.7.5

1, Circular dependency detected while autoloading constant Audit

  • adding this to the initializer seems to let me progress further
  • require "audited/audit"
  1. Validation error on every model when saving with audits
  • Error while creating MyModel - {:audits=>[{:error=>:invalid}]} -

any ideas?

thanks, Simon

x9sim9 avatar Feb 03 '22 10:02 x9sim9

@x9sim9 any luck with this one? Not sure if I'm facing the same issue, but I'm on Ruby 2.7.5 and using Audited 5, I continue to receive "Psych::BadAlias (Unknown alias: 1476)" when attempting to save an audited model.

handlez36 avatar Feb 28 '22 20:02 handlez36

I ended up downgrading back to version 4 which works without issue

x9sim9 avatar Mar 01 '22 06:03 x9sim9

Has this been resolved in subsequent versions?

uberllama avatar Mar 26 '22 21:03 uberllama

I'm seeing this issue with 5.0.2 in Rails 7 when using a custom audit class.

Shazzaam avatar May 18 '22 15:05 Shazzaam

My project also has an Audit class, so could be a common problem...

x9sim9 avatar May 19 '22 06:05 x9sim9

I merged an update that expects a string instead of a class toconfig.audit_class

I believe that will solve this issue.

danielmorrison avatar Dec 23 '22 17:12 danielmorrison