index.js
function() {
            // Build / normalize policy config
            this.mapping = this.buildPolicyMap();
            _bindPolicies(this.mapping, sails.middleware.controllers);

            // Emit event to let other hooks know we're ready to go
            sails.log.verbose('Policy-controller bindings complete!');
            sails.emit('hook:policies:bound');
        }
function() {
            // Build / normalize policy config
            this.mapping = this.buildPolicyMap();
            _bindPolicies(this.mapping, sails.middleware.controllers);

            // Emit event to let other hooks know we're ready to go
            sails.log.verbose('Policy-controller bindings complete!');
            sails.emit('hook:policies:bound');
        }
function ( ) { // Build / normalize policy config this . mapping = this . buildPolicyMap ( ) ; _bindPolicies ( this . mapping , sails . middleware . controllers ) ; // Emit event to let other hooks know we're ready to go sails . log . verbose ( 'Policy-controller bindings complete!' ) ; sails . emit ( 'hook:policies:bound' ) ; }
Curry the policy chains into the appropriate controller functions

@api private
Curry the policy chains into the appropriate controller functions