diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/associations/builder/has_and_belongs_to_many.rb | 2 |
1 files changed, 1 insertions, 1 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 a297439214..afbf6dfb94 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 @@ -26,7 +26,7 @@ module ActiveRecord::Associations::Builder model_name = name.to_s.camelize.singularize if parent_name = lhs_class.parent_name - model_name = model_name.prepend("#{parent_name}::") + model_name.prepend("#{parent_name}::") end model_name |