Permalink
Browse files

[ci skip] Update Documentation on ActiveRecord::Inheritance

  • Loading branch information...
alexcameron89 committed Jun 23, 2016
1 parent 48f896c commit 415856663df4794350e034d85dcc6c5f3d6b82b9
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 Inheritance
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

0 comments on commit 4158566

Please sign in to comment.