lib/doorkeeper/orm/concerns/mongoid/ownership.rb in doorkeeper-mongodb-5.2.2 vs lib/doorkeeper/orm/concerns/mongoid/ownership.rb in doorkeeper-mongodb-5.2.3

- old
+ new

@@ -11,10 +11,10 @@ belongs_to_options = { polymorphic: true } belongs_to_options[:optional] = true if ::Mongoid::VERSION[0].to_i >= 6 belongs_to :owner, belongs_to_options - validates :owner, presence: true, if: :validate_owner? + validates_presence_of :owner, if: :validate_owner? end def validate_owner? Doorkeeper.configuration.confirm_application_owner? end