Sha256: 52c9f790d4252f4b0987205ed8083c427dd3f6c9c7b8224f41052cc94faa20ad
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
module ParamsKeeper::Helper def url_for(options = nil) controller.url_for(options) end class << self def merge_params(options, params, keep_params_keys) keeps = params.to_unsafe_h.deep_symbolize_keys.slice(*keep_params_keys.to_a) options.reverse_merge(keeps) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
params_keeper_rails-1.0.0 | lib/params_keeper/helper.rb |