Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added config syntax to enable/disable identity map: config.active_rec…

…ord.identity_map = true
  • Loading branch information...
commit da721dae1ea2cc7d33c32080aaaf86e34c91352d 1 parent 003e4fb
@miloops miloops authored
View
1  activerecord/lib/active_record/base.rb
@@ -425,6 +425,7 @@ class << self # Class methods
delegate :find_each, :find_in_batches, :to => :scoped
delegate :select, :group, :order, :except, :limit, :offset, :joins, :where, :preload, :eager_load, :includes, :from, :lock, :readonly, :having, :create_with, :to => :scoped
delegate :count, :average, :minimum, :maximum, :sum, :calculate, :to => :scoped
+ delegate :identity_map=, :to => :identity_map
# Executes a custom SQL query against your database and returns all the results. The results will
# be returned as an array with columns requested encapsulated as attributes of the model you call
View
1  activerecord/lib/active_record/identity_map.rb
@@ -45,6 +45,7 @@ def clear
end
alias enabled? enabled
+ alias identity_map= enabled=
end
self.repositories ||= Hash.new
Please sign in to comment.
Something went wrong with that request. Please try again.