aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-02-02 23:25:44 -0800
committerYves Senn <yves.senn@gmail.com>2014-02-02 23:25:44 -0800
commit7f8fbf7744925881fc551ed50ab7f55bbd1db28f (patch)
tree132855497443e506b7bcda7decd32c80d3109346
parent3e6d302ccc0b3bbb1527dbb83ea1834bd85b44a0 (diff)
parentca1121af6aeaa848267dd5d73fef10f1e9ea35a3 (diff)
downloadrails-7f8fbf7744925881fc551ed50ab7f55bbd1db28f.tar.gz
rails-7f8fbf7744925881fc551ed50ab7f55bbd1db28f.tar.bz2
rails-7f8fbf7744925881fc551ed50ab7f55bbd1db28f.zip
Merge pull request #13926 from fredwu/doc_polymorphic_sti_var_name_typo
Fixes the camelCase variable name in the docs [ci skip]
-rw-r--r--activerecord/lib/active_record/associations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb
index f3f77e21c0..051f7dff53 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -672,8 +672,8 @@ module ActiveRecord
# class Asset < ActiveRecord::Base
# belongs_to :attachable, polymorphic: true
#
- # def attachable_type=(sType)
- # super(sType.to_s.classify.constantize.base_class.to_s)
+ # def attachable_type=(klass)
+ # super(klass.to_s.classify.constantize.base_class.to_s)
# end
# end
#