add rel_type param for relationship_attrs coderef
authorRafael Kitover <rkitover@cpan.org>
Mon, 10 Sep 2012 14:23:18 +0000 (10:23 -0400)
committerRafael Kitover <rkitover@cpan.org>
Mon, 10 Sep 2012 14:23:18 +0000 (10:23 -0400)
commit3492170f73028981fa56f8d2f7d4c8c1aeea5bb5
tree0a5940c788f8055f62b9067edf22c189ddbc7497
parentae151d4f7f9d1bff0e912b03ff97c1aec918f867
add rel_type param for relationship_attrs coderef

Forgot to pass some sort of param for the rel type for the
relationship_attrs coderef, adding 'rel_type' with the value
'belongs_to', 'has_many' or 'might_have'.

Add tests to 45relationships.t and doc in ::Base POD.
Changes
lib/DBIx/Class/Schema/Loader/Base.pm
lib/DBIx/Class/Schema/Loader/RelBuilder.pm
t/45relationships.t