Permalink
Browse files

No need to send public methods

  • Loading branch information...
1 parent 92aa789 commit 39394ab3dbc32d063adcf03390f36067d4e83a13 @amatsuda amatsuda committed Feb 26, 2013
@@ -146,7 +146,7 @@ def load_target
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 @@ def record_id(row)
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 @@ def save_collection_association(reflection)
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

0 comments on commit 39394ab

Please sign in to comment.