Fixes #13545 - STI permission checking always using base class
This fixes permission checks on STI objects. Due to these methods existing in Procs and being included in the base class at run time resource_class was returning the base class. I can only presume this is related to a ruby or rails 4 upgrade
(cherry picked from commit 640d7ee703ae347ee9dd5c21e341cb4d6a9874ec)
Fixes #13545 - STI permission checking always using base class
This fixes permission checks on STI objects. Due to these methods existing
in Procs and being included in the base class at run time resource_class was
returning the base class. I can only presume this is related to a ruby or rails 4
upgrade
(cherry picked from commit 640d7ee703ae347ee9dd5c21e341cb4d6a9874ec)