Sha256: 10ec92ccebb13e1622fb05641072eacb496910f431cae14505a7335483fd875f

Contents?: true

Size: 348 Bytes

Versions: 7

Compression:

Stored size: 348 Bytes

Contents

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

            def show(*args, **options)
              authorize(resource)
              super(*args, **options)
            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/show.rb
trax_controller-0.1.4 lib/trax/controller/authorization/pundit/actions/show.rb
trax_controller-0.1.3 lib/trax/controller/authorization/pundit/actions/show.rb
trax_controller-0.1.2 lib/trax/controller/authorization/pundit/actions/show.rb
trax_controller-0.1.1 lib/trax/controller/authorization/pundit/actions/show.rb
trax_controller-0.1.0 lib/trax/controller/authorization/pundit/actions/show.rb
trax_controller-0.0.4 lib/trax/controller/authorization/pundit/actions/show.rb