Permalink
Browse files

Merge pull request #13926 from fredwu/doc_polymorphic_sti_var_name_typo

Fixes the camelCase variable name in the docs [ci skip]
  • Loading branch information...
1 parent e6003cb commit 3469cee623657388df956118c8314fa0cdf0f1f4 @senny senny committed Feb 3, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations.rb
@@ -657,8 +657,8 @@ def association_instance_set(name, association)
# 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
#

1 comment on commit 3469cee

Owner

fxn commented on 3469cee Feb 3, 2014

Doesn't that read a little weird? Why would you classify a klass? and then constantize?

Please sign in to comment.