habtm association is broken on (rails 4.1.x)

test case: 
update activerecord version to > 4.1.x
run tests
result: tests failed with "undefined local variable or method `reflections'"

reflections are broken in rails in 4.1.0 and fixed in 4.1.2 
see https://github.com/rails/rails/pull/15210 for details.

It is fixed by https://github.com/solutus/amoeba/commit/18a67f1c7f1797902c9393e3068e172ac127e9f7 

waiting for rails 4.1.2 release for pull request.