zilkey/active_hash — pull request #48 by kbrock (2012-04-03 03:25:26+00:00)
Title: belongs_to_active_hash respects active record's association interface

Hello,

Lets try this one again.

belongs_to adds metadata to a parent active record model.
Form builders (e.g.: simple form) use this metadata.

After this patch, belongs_to_active_hash will act the same way as belongs_to. It will also add the metadata.

I only need this functionality in ActiveRecord::Base children and not ActiveHash::Base classes. Hence I am only modifying belongs_to_active_hash.

If you want, I can add a respond_to?(:create_reflection).

Thanks,
--Keenan