lib/mongoid/timestamps/updated.rb in mongoid-8.0.1 vs lib/mongoid/timestamps/updated.rb in mongoid-8.0.2
- old
+ new
@@ -33,10 +33,10 @@
# Is the updated timestamp able to be set?
#
# @example Can the timestamp be set?
# document.able_to_set_updated_at?
#
- # @return [ true, false ] If the timestamp can be set.
+ # @return [ true | false ] If the timestamp can be set.
def able_to_set_updated_at?
!frozen? && !timeless? && (new_record? || changed?)
end
end
end