diff options
author | Akira Matsuda <ronnie@dio.jp> | 2013-02-26 16:59:12 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2013-02-26 16:59:12 +0900 |
commit | 39394ab3dbc32d063adcf03390f36067d4e83a13 (patch) | |
tree | 56b3f995ed2e0010ed60a51385dc33fa98517ae2 /activerecord | |
parent | 92aa789ce1ee9d7a2220bb49d22288f292d05367 (diff) | |
download | rails-39394ab3dbc32d063adcf03390f36067d4e83a13.tar.gz rails-39394ab3dbc32d063adcf03390f36067d4e83a13.tar.bz2 rails-39394ab3dbc32d063adcf03390f36067d4e83a13.zip |
No need to send public methods
Diffstat (limited to 'activerecord')
3 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/association.rb b/activerecord/lib/active_record/associations/association.rb index 3f0e4ca999..868095f068 100644 --- a/activerecord/lib/active_record/associations/association.rb +++ b/activerecord/lib/active_record/associations/association.rb @@ -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 diff --git a/activerecord/lib/active_record/associations/join_dependency/join_part.rb b/activerecord/lib/active_record/associations/join_dependency/join_part.rb index 711f7b3ce1..5604687b57 100644 --- a/activerecord/lib/active_record/associations/join_dependency/join_part.rb +++ b/activerecord/lib/active_record/associations/join_dependency/join_part.rb @@ -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 diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index 704998301c..55542262b0 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -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 |