zilkey/active_hash — pull request #47 by kbrock (2012-04-02 14:20:44+00:00)
Title: add associations to active record associations

Hello,

This patch changes belongs_to_active_hash to populate active record's associations.

This association is used by simple form (and others) to build drop downs.

Good:
This patch worked in ree,1.9.2: rails 2.x - 3.x. (Could not test 1.8.7, but see no problem)

Bad:
It uses an active record model since ar uses is_a? in the code.

Please send any suggestions for the code/tests, and I'll change accordingly.

Thanks,
Keenan