aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:45:05 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-03-14 22:45:46 -0700
commit19ca04a18463beef4f906c8d9879d095d6cc5f51 (patch)
tree2e3c3a91ce59794cfab64f824a85b9874ae8ed3f /activerecord
parent8d3e5c8c5200880a66abef3fd2f45104e65732e9 (diff)
downloadrails-19ca04a18463beef4f906c8d9879d095d6cc5f51.tar.gz
rails-19ca04a18463beef4f906c8d9879d095d6cc5f51.tar.bz2
rails-19ca04a18463beef4f906c8d9879d095d6cc5f51.zip
just access the ivars rather than rb_iv_get
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/schema_cache.rb8
1 files changed, 3 insertions, 5 deletions
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)