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
When I try to anonymize a model with an active storage attachment. E.g. User with a profile picture
# lib/extensions/evil_seed.rb
require "evil_seed"
EvilSeed.configure do |config|
config.root("User", id: 13055) do |root|
root.exclude(/.*/) # exclude all associations
end
config.anonymize("User") do
name { Faker::Name.name }
end
end
I get a method_missing for has_one_attached on this model.
/Users/billabel/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/activerecord-6.1.7.2/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `has_one_attached' for User:Class (NoMethodError)
Is there a fix or workaround? Is this a ruby 3.2 issue?
The text was updated successfully, but these errors were encountered:
Can you please try to replicate the issue using some kind of self-contained gist, like this one that Rails uses for reporting ActiveStorage bugs? (but of course adding evil-seed to it)
When I try to anonymize a model with an active storage attachment. E.g. User with a profile picture
I get a method_missing for has_one_attached on this model.
Is there a fix or workaround? Is this a ruby 3.2 issue?
The text was updated successfully, but these errors were encountered: