Sha256: 37e8cd8936f51862b711838a1e535174fa9f73ad222ab69dc40fd4abfa8dcb17

Contents?: true

Size: 193 Bytes

Versions: 2

Compression:

Stored size: 193 Bytes

Contents

module ScrubParams
  module Controller
    extend ActiveSupport::Concern

    included do
      before_filter :scrub_params
    end

    def scrub_params
      params.scrub!
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrub_params-0.0.3 lib/scrub_params/controller.rb
scrub_params-0.0.2 lib/scrub_params/controller.rb