Closed ships closed 6 years ago
Wow that is a great addition, thanks! I'll test it out and if it works, release as 1.3.0
:)
@jraqula released as 1.3.0
:boom:
@pokonski stellar ! What a fast turnaround you have there ! Thanks.
It's quiet around here :grin:
While trying to integrate AccessGranted into a project, I encountered problems it introduced to the load order of some classes, with confusing breakage happening far down the line as a result.
In particular, some rails modules were patching their own logic into ActionController::API, and doing so in a
Railtie
initializer (I first encountered this with jbuilder) . Once I included AccessGranted in my project, I found that the relevant classes were being loaded before this logic; ultimately, my controller lacked the ActionView::Rendering module.This PR fixes this issue by migrating that logic into the canonical Railtie format as well for access granted. This has enabled me to load up Jbuilder's initializer first.