I tried to use your gem with Mongoid and it appeared to throw an undefined method error. So I thought it wasn't supported by web-app-theme. But after opening the source of your gem I saw there actually was support for Mongoid, except that the NoMethodError exception never gets properly rescued, and this errors out rather than attempting to call the #fields method instead. So now it does with this small commit.
Hi.
I tried to use your gem with Mongoid and it appeared to throw an
undefined method
error. So I thought it wasn't supported by web-app-theme. But after opening the source of your gem I saw there actually was support for Mongoid, except that theNoMethodError
exception never gets properly rescued, and this errors out rather than attempting to call the#fields
method instead. So now it does with this small commit.