Sha256: f6674a766334adda64e44add72131902496f12212eb154b536a1fdd8342620a1

Contents?: true

Size: 352 Bytes

Versions: 5

Compression:

Stored size: 352 Bytes

Contents

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

            def new(*args, **options)
              authorize(build_resource)
              super(*args, **options)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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