aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/inheritance.rb
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2014-07-02 14:22:24 +0200
committerRobin Dupret <robin.dupret@gmail.com>2014-07-02 14:22:24 +0200
commit4cb4e87b938da13125c57a005cc6924052b76b17 (patch)
treef824e063c75767bb2ecc5fef31789ccb6556ff8a /activerecord/lib/active_record/inheritance.rb
parent9d599abe0febd96d7cd1f22e7d5f380187ae4476 (diff)
downloadrails-4cb4e87b938da13125c57a005cc6924052b76b17.tar.gz
rails-4cb4e87b938da13125c57a005cc6924052b76b17.tar.bz2
rails-4cb4e87b938da13125c57a005cc6924052b76b17.zip
Tiny follow-up to #15987 and 088b4c3e [ci skip]
Diffstat (limited to 'activerecord/lib/active_record/inheritance.rb')
-rw-r--r--activerecord/lib/active_record/inheritance.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/inheritance.rb b/activerecord/lib/active_record/inheritance.rb
index 5c2f1215d2..f6c265a6d6 100644
--- a/activerecord/lib/active_record/inheritance.rb
+++ b/activerecord/lib/active_record/inheritance.rb
@@ -16,14 +16,14 @@ module ActiveRecord
# the companies table with type = "Firm". You can then fetch this row again using
# <tt>Company.where(name: '37signals').first</tt> and it will return a Firm object.
#
- # Be aware that because the type column is an attribute on the record every new
+ # 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
+ # in the list of changed attributes on the record. This is different from non
# STI classes:
#
# Company.new.changed? # => false
- # Firm.new.changed? # => true
- # Firm.new.changes # => {"type"=>["","Firm"]}
+ # Firm.new.changed? # => true
+ # Firm.new.changes # => {"type"=>["","Firm"]}
#
# If you don't have a type column defined in your table, single-table inheritance won't
# be triggered. In that case, it'll work just like normal subclasses with no special magic