method

permitted_scalar_filter

Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Class: Parameters
permitted_scalar_filter(params, permitted_key) private

Adds existing keys to the params if their values are scalar.

For example:

puts self.keys #=> ["zipcode(90210i)"]
params = {}

permitted_scalar_filter(params, "zipcode")

puts params.keys # => ["zipcode"]
Show source
Register or log in to add new notes.