diff options
author | Zachary Scott <e@zzak.io> | 2014-05-16 11:36:48 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-05-16 11:48:17 -0700 |
commit | 0372c5078af38081ebc273eab69687a6b9768751 (patch) | |
tree | ae892b9cd3ad2b1bf4a4d4fc6dae477881d13f1a /activerecord | |
parent | 0369dbfd42328a88e9ff2643c94900ce31dbf0c8 (diff) | |
download | rails-0372c5078af38081ebc273eab69687a6b9768751.tar.gz rails-0372c5078af38081ebc273eab69687a6b9768751.tar.bz2 rails-0372c5078af38081ebc273eab69687a6b9768751.zip |
Remove the assignment for real this time.
cc:
https://github.com/rails/rails/commit/a11e2fcff8cdc9691b977d8330abe63024f8c732#commitcomment-6353614
and 0369dbf
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb b/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb index afbf6dfb94..44486ad758 100644 --- a/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb +++ b/activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb @@ -25,8 +25,8 @@ module ActiveRecord::Associations::Builder class_name = options.fetch(:class_name) { model_name = name.to_s.camelize.singularize - if parent_name = lhs_class.parent_name - model_name.prepend("#{parent_name}::") + if lhs_class.parent_name + model_name.prepend("#{lhs_class.parent_name}::") end model_name |