diff options
Diffstat (limited to 'activerecord/lib/active_record/associations/singular_association.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/singular_association.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/associations/singular_association.rb b/activerecord/lib/active_record/associations/singular_association.rb index b970ad7a67..e75fdaf36f 100644 --- a/activerecord/lib/active_record/associations/singular_association.rb +++ b/activerecord/lib/active_record/associations/singular_association.rb @@ -28,12 +28,6 @@ module ActiveRecord replace(record) end - def check_record(record) - record = record.target if Association === record - raise_on_type_mismatch(record) if record - record - end - def new_record(method, attributes) attributes = scoped.scope_for_create.merge(attributes || {}) record = reflection.send("#{method}_association", attributes) |