lib/scrivito/obj_collection.rb in scrivito_sdk-0.70.2 vs lib/scrivito/obj_collection.rb in scrivito_sdk-0.71.0.rc1
- old
+ new
@@ -30,18 +30,18 @@
end
# Find the {BasicObj Obj} that has the given path.
# Returns +nil+ if no matching object exists.
# @param [String] path Path of the {BasicObj Obj}.
- # @return [Obj]
+ # @return [Obj,NilClass]
# @api public
def find_by_path(path)
find_by(:path, [path]).first.first
end
# Returns the {BasicObj Obj} that has the given permalink, or +nil+ if no matching object exists.
# @param [String] permalink The permalink of the {BasicObj Obj}.
- # @return [Obj]
+ # @return [Obj,NilClass]
# @api public
def find_by_permalink(permalink)
find_by(:permalink, [permalink]).first.first
end