Sha256: 3eaba92e925d3d355808d3d78b48486f8d77fe93207f791fdc13579b5602c0df

Contents?: true

Size: 415 Bytes

Versions: 1

Compression:

Stored size: 415 Bytes

Contents

require "active_model/suppress_forbidden_attributes"
require "action_controller/handle_unpermitted_parameters"
require "params_patrol/version"

module ParamsPatrol
  def self.handler
    @handler
  end

  def self.handler=(handler)
    @handler = handler
  end

  def self.handle(*options)
    if @handler.nil?
      @handler = lambda { |x| Logger.new(STDOUT).info(x) }
    end
    @handler.call(options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
params_patrol-0.1.0 lib/params_patrol.rb