Sha256: 4c3c0d3597ff8b4f0a4d7b5ca375a7a0413b6535cfbfb99f5b1ed905de2b17c1

Contents?: true

Size: 177 Bytes

Versions: 19

Compression:

Stored size: 177 Bytes

Contents

module Trestle
  module ParamsHelper
    def persistent_params
      params.slice(*Trestle.config.persistent_params).permit(*Trestle.config.persistent_params)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
trestle-0.9.5 app/helpers/trestle/params_helper.rb
trestle-0.9.4 app/helpers/trestle/params_helper.rb
trestle-0.9.3 app/helpers/trestle/params_helper.rb
trestle-0.9.2 app/helpers/trestle/params_helper.rb
trestle-0.9.1 app/helpers/trestle/params_helper.rb
trestle-0.9.0 app/helpers/trestle/params_helper.rb
trestle-0.8.13 app/helpers/trestle/params_helper.rb
trestle-0.8.12 app/helpers/trestle/params_helper.rb
trestle-0.8.11 app/helpers/trestle/params_helper.rb
trestle-0.8.10 app/helpers/trestle/params_helper.rb
trestle-0.8.9 app/helpers/trestle/params_helper.rb
trestle-0.8.8 app/helpers/trestle/params_helper.rb
trestle-0.8.7 app/helpers/trestle/params_helper.rb
trestle-0.8.6 app/helpers/trestle/params_helper.rb
trestle-0.8.5 app/helpers/trestle/params_helper.rb
trestle-0.8.4 app/helpers/trestle/params_helper.rb
trestle-0.8.3 app/helpers/trestle/params_helper.rb
trestle-0.8.2 app/helpers/trestle/params_helper.rb
trestle-0.8.0 app/helpers/trestle/params_helper.rb