mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
No need to send public methods
This commit is contained in:
parent
92aa789ce1
commit
39394ab3db
3 changed files with 3 additions and 3 deletions
|
@ -146,7 +146,7 @@ module ActiveRecord
|
|||
|
||||
def interpolate(sql, record = nil)
|
||||
if sql.respond_to?(:to_proc)
|
||||
owner.send(:instance_exec, record, &sql)
|
||||
owner.instance_exec(record, &sql)
|
||||
else
|
||||
sql
|
||||
end
|
||||
|
|
|
@ -70,7 +70,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
def instantiate(row)
|
||||
@cached_record[record_id(row)] ||= active_record.send(:instantiate, extract_record(row))
|
||||
@cached_record[record_id(row)] ||= active_record.instantiate(extract_record(row))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -347,7 +347,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
# reconstruct the scope now that we know the owner's id
|
||||
association.send(:reset_scope) if association.respond_to?(:reset_scope)
|
||||
association.reset_scope if association.respond_to?(:reset_scope)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue