Skip to content

Commit

Permalink
Merge pull request #15139 from zzak/habtm_build_model_name
Browse files Browse the repository at this point in the history
Remove the assignment for real this time.
  • Loading branch information
rafaelfranca committed May 16, 2014
2 parents 0369dbf + 0372c50 commit 654be5f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 654be5f

Please sign in to comment.