Describe the bug
Process of adding the gem fails during the installation. To reproduce the bug do the followings:
Add the gem,
Run the following: bundle exec rails decidim_privacy:install:migrations
See the following error:
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/app/models/concerns/decidim/privacy/unscoped_user_relation.rb:34:in block in module:UnscopedUserRelation'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:136:in class_eval' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:136:in append_features'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in include' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in block in append_features'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in each' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in append_features'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/lib/decidim/privacy/engine.rb:153:in include' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/lib/decidim/privacy/engine.rb:153:in block (2 levels) in class:Engine'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:427:in instance_exec' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:427:in block in make_lambda'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:198:in block (2 levels) in halting' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:604:in block (2 levels) in default_terminator'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:603:in catch' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:603:in block in default_terminator'
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:199:in block in halting'
Describe the bug
Process of adding the gem fails during the installation. To reproduce the bug do the followings:
Add the gem,
Run the following: bundle exec rails decidim_privacy:install:migrations
See the following error:
/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/app/models/concerns/decidim/privacy/unscoped_user_relation.rb:34:inblock in module:UnscopedUserRelation'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:136:in
class_eval' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:136:inappend_features'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in
include' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:inblock in append_features'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:in
each' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/concern.rb:133:inappend_features'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/lib/decidim/privacy/engine.rb:153:in
include' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/bundler/gems/decidim-module-privacy-90474c8071e2/lib/decidim/privacy/engine.rb:153:inblock (2 levels) in class:Engine'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:427:in
instance_exec' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:427:inblock in make_lambda'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:198:in
block (2 levels) in halting' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:604:inblock (2 levels) in default_terminator'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:603:in
catch' /home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:603:inblock in default_terminator'/home/seftekhar/.rbenv/versions/3.0.4/lib/ruby/gems/3.0.0/gems/activesupport-6.1.7.9/lib/active_support/callbacks.rb:199:in
block in halting'