提交 11d488dd 编写于 作者: O Oscar Del Ben

Fix typos

上级 69879667
...@@ -75,7 +75,7 @@ def insert(values) ...@@ -75,7 +75,7 @@ def insert(values)
binds) binds)
end end
# Initializes new record from relation while maintaing the current # Initializes new record from relation while maintaining the current
# scope. # scope.
# #
# Expects arguments in the same format as +Base.new+. # Expects arguments in the same format as +Base.new+.
...@@ -99,7 +99,7 @@ def initialize_copy(other) ...@@ -99,7 +99,7 @@ def initialize_copy(other)
alias build new alias build new
# Tries to +create+ a new record with the same scoped attributes # Tries to create a new record with the same scoped attributes
# defined in the relation. Returns the initialized object if validation fails. # defined in the relation. Returns the initialized object if validation fails.
# #
# Expects arguments in the same format as +Base.create+. # Expects arguments in the same format as +Base.create+.
...@@ -252,7 +252,7 @@ def any? ...@@ -252,7 +252,7 @@ def any?
end end
end end
# Returns true if there are more than one records. # Returns true if there is more than one records.
def many? def many?
if block_given? if block_given?
to_a.many? { |*block_args| yield(*block_args) } to_a.many? { |*block_args| yield(*block_args) }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册