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
Trying to update rails from 5.0.7.2 to 5.1.7 and running into an issue, namely, calling paranoia ends up raising an exception
concern
require "paranoia"
module SoftDeletable
extend ActiveSupport::Concern
included do
acts_as_paranoid without_default_scope: true
end
end
model
class User < ApplicationRecord
include SoftDeletable
end
be rspec spec/models/user_spec.rb
Skipping generating coverage report, CI env var not defined
An error occurred while loading ./spec/models/user_spec.rb.
Failure/Error: include SoftDeletable
NoMethodError:
undefined method `append' for nil:NilClass
exception while pryed inside paranoia itself
[test] User:0> before_restore {
[test] User:0> self.class.notify_observers(:before_restore, self) if self.class.respond_to?(:notify_observers)
[test] User:0> }
NoMethodError: undefined method `append' for nil:NilClass
Calling before_restore with an empty block results in the same error
I can't seem to get what the problem here is, can you guys offer any insight?
The text was updated successfully, but these errors were encountered:
👋
Trying to update rails from 5.0.7.2 to 5.1.7 and running into an issue, namely, calling paranoia ends up raising an exception
concern
model
exception while pryed inside paranoia itself
Calling
before_restore
with an empty block results in the same errorI can't seem to get what the problem here is, can you guys offer any insight?
The text was updated successfully, but these errors were encountered: