Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6976 from vitorbal/master

Add documentation for inheritance_column method [ci skip]
  • Loading branch information...
commit 6d0394ca28d68317d6119f28e9e07f48e6e5f50c 2 parents cb8ac7d + 2942192
@carlosantoniodasilva carlosantoniodasilva authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 activerecord/lib/active_record/model.rb
View
4 activerecord/lib/active_record/model.rb
@@ -103,7 +103,9 @@ def arel_engine
def abstract_class?
false
end
-
+
+ # Defines the name of the table column which will store the class name on single-table
+ # inheritance situations.
def inheritance_column
'type'
end
Please sign in to comment.
Something went wrong with that request. Please try again.