cancan
cancan copied to clipboard
Use ActiveSupport.on_load to include CanCan::ControllerAdditions
This way, rails-api users will not have to manually include CanCan::ControllerAdditions.
Regards.
Fix #736
+1
:+1:
+1
Lol, I totally forgot about that one. I can't believe it haven't been fixed yet.
+1
This problem still occurs in Rails api-only when extending ActionController::API