aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
authorJon Moss <maclover7@users.noreply.github.com>2016-06-23 09:53:44 -0400
committerGitHub <noreply@github.com>2016-06-23 09:53:44 -0400
commitfa95c8b8149fe293655b6ac7c9980258c109e2db (patch)
treee6274f6ddd614c9b1e3438cc0be388373136fb12 /activerecord/lib/active_record
parent2bbd402d31863dead88d561de9c6482cf95f2dfc (diff)
parent415856663df4794350e034d85dcc6c5f3d6b82b9 (diff)
downloadrails-fa95c8b8149fe293655b6ac7c9980258c109e2db.tar.gz
rails-fa95c8b8149fe293655b6ac7c9980258c109e2db.tar.bz2
rails-fa95c8b8149fe293655b6ac7c9980258c109e2db.zip
Merge pull request #25486 from alexcameron89/inheritance
[ci skip] Update Documentation on ActiveRecord::Inheritance
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r--activerecord/lib/active_record/inheritance.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/inheritance.rb b/activerecord/lib/active_record/inheritance.rb
index 899683ee4f..b5fec57c8c 100644
--- a/activerecord/lib/active_record/inheritance.rb
+++ b/activerecord/lib/active_record/inheritance.rb
@@ -19,7 +19,7 @@ module ActiveRecord
# Be aware that because the type column is an attribute on the record every new
# subclass will instantly be marked as dirty and the type column will be included
# in the list of changed attributes on the record. This is different from non
- # STI classes:
+ # Single Table Inheritance(STI) classes:
#
# Company.new.changed? # => false
# Firm.new.changed? # => true
@@ -37,6 +37,7 @@ module ActiveRecord
included do
# Determines whether to store the full constant name including namespace when using STI.
+ # This is true, by default.
class_attribute :store_full_sti_class, instance_writer: false
self.store_full_sti_class = true
end