aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/core.rb
diff options
context:
space:
mode:
authorAlexander Balashov <divineforest@gmail.com>2013-03-28 18:52:14 +0400
committerAlexander Balashov <divineforest@gmail.com>2013-03-28 18:52:14 +0400
commitcec034396584df907fa00738e9c4326f70b16388 (patch)
treebb53e6fd141fad9429c34f7427e55a46bd47658f /activerecord/lib/active_record/core.rb
parent5533994b335560f2bf6b1dc6aef995b37c4657e0 (diff)
downloadrails-cec034396584df907fa00738e9c4326f70b16388.tar.gz
rails-cec034396584df907fa00738e9c4326f70b16388.tar.bz2
rails-cec034396584df907fa00738e9c4326f70b16388.zip
Fix typo: overriden => overriDDen
Diffstat (limited to 'activerecord/lib/active_record/core.rb')
-rw-r--r--activerecord/lib/active_record/core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/core.rb b/activerecord/lib/active_record/core.rb
index 1ed05c1bd4..db5e7b82ca 100644
--- a/activerecord/lib/active_record/core.rb
+++ b/activerecord/lib/active_record/core.rb
@@ -78,7 +78,7 @@ module ActiveRecord
self.disable_implicit_join_references = false
class_attribute :default_connection_handler, instance_writer: false
-
+
def self.connection_handler
Thread.current[:active_record_connection_handler] || self.default_connection_handler
end
@@ -444,7 +444,7 @@ module ActiveRecord
end
def init_changed_attributes
- # Intentionally avoid using #column_defaults since overriden defaults (as is done in
+ # Intentionally avoid using #column_defaults since overridden defaults (as is done in
# optimistic locking) won't get written unless they get marked as changed
self.class.columns.each do |c|
attr, orig_value = c.name, c.default