From 19ca04a18463beef4f906c8d9879d095d6cc5f51 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 14 Mar 2013 22:45:05 -0700 Subject: just access the ivars rather than rb_iv_get --- .../lib/active_record/connection_adapters/schema_cache.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/connection_adapters/schema_cache.rb b/activerecord/lib/active_record/connection_adapters/schema_cache.rb index 9c56d35bcc..47d90526ac 100644 --- a/activerecord/lib/active_record/connection_adapters/schema_cache.rb +++ b/activerecord/lib/active_record/connection_adapters/schema_cache.rb @@ -97,11 +97,9 @@ module ActiveRecord def marshal_dump # if we get current version during initialization, it happens stack over flow. @version = ActiveRecord::Migrator.current_version - [@version] + [:@columns, :@columns_hash, :@primary_keys, :@tables].map do |val| - instance_variable_get(val).dup.tap { |h| - h.default_proc = nil - } - end + [@version] + [@columns, @columns_hash, @primary_keys, @tables].map { |val| + val.dup.tap { |h| h.default_proc = nil } + } end def marshal_load(array) -- cgit v1.2.3