Sha256: bd401d5e47ef20964e9479c2bc6fcfa86ef98b8b63e9745edaf96a688322ec72

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

require "scrub_params/version"
require "active_support/hash_with_indifferent_access"
require "action_controller"
require "scrub_params/parameters"
require "scrub_params/controller"
require "scrub_params/log_subscriber"

if defined?(ActionController::Parameters)
  ActionController::Parameters.send :include, ScrubParams::Parameters
else
  ActiveSupport::HashWithIndifferentAccess.send :include, ScrubParams::Parameters
end

ActionController::Base.send :include, ScrubParams::Controller

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrub_params-0.0.4 lib/scrub_params.rb
scrub_params-0.0.3 lib/scrub_params.rb