Sha256: 9e196a67f2f944a9838311ca82c110a65744da6ddc18f5d91f4e9d846048dbef

Contents?: true

Size: 341 Bytes

Versions: 7

Compression:

Stored size: 341 Bytes

Contents

module Trax
  module Controller
    module Authorization
      module Pundit
        module Actions
          module Destroy
            extend ::ActiveSupport::Concern

            def destroy_resource(object)
              authorize(object)
              super(object)
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
trax_controller-1.0.0 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.1.4 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.1.3 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.1.2 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.1.1 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.1.0 lib/trax/controller/authorization/pundit/actions/destroy.rb
trax_controller-0.0.4 lib/trax/controller/authorization/pundit/actions/destroy.rb