Permalink
Browse files

Remove the assignment for real this time.

  • Loading branch information...
zzak committed May 16, 2014
1 parent 0369dbf commit 0372c5078af38081ebc273eab69687a6b9768751
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb
@@ -25,8 +25,8 @@ def self.build(lhs_class, name, options)
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

0 comments on commit 0372c50

Please sign in to comment.