app/concerns/versioning.rb in iqvoc-4.5.2 vs app/concerns/versioning.rb in iqvoc-4.6.0
- old
+ new
@@ -17,10 +17,10 @@
module Versioning
extend ActiveSupport::Concern
included do
belongs_to :published_version, foreign_key: 'published_version_id', class_name: name
- belongs_to :locking_user, foreign_key: 'locked_by', class_name: 'User'
+ belongs_to :locking_user, foreign_key: 'locked_by', class_name: 'AbstractUser'
after_initialize do
disable_validations_for_publishing
end
end