rails/rails — pull request #15595 by eileencodes (2014-06-09 23:12:18+00:00)
Title: Abrasct away use of HABTM macro

By having the `:has_and_belongs_to_many` macro in the `@collection`
we are punishing `:has_many` associations because it has to allocate
the array and check the macro.

@collection is returned to `macro == :has_many` and a new reflection
class `HABTMReflection` is created to handle this case instead.

cc/ @tenderlove