Open subvertallchris opened 8 years ago
I was discussing this with @leviwilson the other day. I think that the default behavior for ActiveRel
should be to demodulize
and you should need to configure to include the module. After all, if you have Graph::MyRel
and Foo::MyRel
, it doesn't matter if you have multiple relationships that have the same type of MY_REL
(or my_rel
, depending on your settings). Also it's just weird if you were to do GRAPH_MY_REL
/ FOO_MY_REL
by default. The class name is almost always what's describing the relationship type.
@leviwilson ran into this originally because it was trying to do Graph::MyRel
as the relationship type without using backticks and giving an error (perhaps that's what you got as well).
There's also an issue with
rel_class
in associations. I ended up having less time than I thought so couldn't get to a fix, will do it soon.