mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Small indent
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
65f834ad45
commit
a3298e5efd
1 changed files with 1 additions and 1 deletions
|
@ -902,7 +902,7 @@ module ActiveRecord #:nodoc:
|
|||
# Returns a clone of the record that hasn't been assigned an id yet and is treated as a new record.
|
||||
def clone
|
||||
attrs = self.attributes
|
||||
attrs.delete(self.class.primary_key)
|
||||
attrs.delete(self.class.primary_key)
|
||||
cloned_record = self.class.new(attrs)
|
||||
cloned_record
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue