Subject: | add ref($thing) check in maybe_link_view |
Can you add something like:
return $thing unless ref($thing);
to the beginning of maybe_link_view?
I'm using M:P:Authorize, and problems are caused because one of the column names is model_name in one of my tables and contains stuff like "Model::Users". It tried to call methods on those to get the links when it shouldn't.
I realize this isn't maybe the best usage, but it's the way M:P:A works, so other people are sure to run into it.