Sha256: 5cd804bac6e065bfa953916060e4b87bffd0c6cb188dcc823a36a9532be354ac

Contents?: true

Size: 299 Bytes

Versions: 14

Compression:

Stored size: 299 Bytes

Contents

module Katello
  class ParamsParserWrapper < ActionDispatch::ParamsParser
    def initialize(app, excludes)
      @exclude = excludes
      super(app)
    end

    def call(env)
      if @exclude && @exclude.call(env)
        @app.call(env)
      else
        super(env)
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
katello-3.5.2 lib/katello/params_parser_wrapper.rb
katello-3.5.1.1 lib/katello/params_parser_wrapper.rb
katello-3.5.1 lib/katello/params_parser_wrapper.rb
katello-3.5.0.1 lib/katello/params_parser_wrapper.rb
katello-3.5.0 lib/katello/params_parser_wrapper.rb
katello-3.5.0.rc2 lib/katello/params_parser_wrapper.rb
katello-3.5.0.rc1 lib/katello/params_parser_wrapper.rb
katello-3.4.5 lib/katello/params_parser_wrapper.rb
katello-3.4.4 lib/katello/params_parser_wrapper.rb
katello-3.4.2 lib/katello/params_parser_wrapper.rb
katello-3.4.1 lib/katello/params_parser_wrapper.rb
katello-3.4.0.2 lib/katello/params_parser_wrapper.rb
katello-3.4.0.1 lib/katello/params_parser_wrapper.rb
katello-3.4.0 lib/katello/params_parser_wrapper.rb