method

permitted_scalar_filter

Importance_1
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.