add a association_of function for ActiveRecord. use it instead of association_dict.get method