Sha256: 3d042996a79889a839fa56531976b8f59774df6bd111f5093c2647df56e435fb
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# This overrides the before method provided by resource_controller so that the current_user is authorized # for each action before proceding. module ResourceController module Helpers module Internal protected # Calls the before block for the action, if one is present. # def before(action) authorize! action, object || model invoke_callbacks *self.class.send(action).before end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_auth-0.30.0 | app/controllers/resource_controller_decorator.rb |