mirror of
https://github.com/github/rails.git
synced 2026-01-22 21:07:57 -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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user