method

each_element

each_element(object)
private

No documentation available.

# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 471
      def each_element(object)
        if object.is_a?(Array)
          object.map { |el| yield el }.compact
        elsif fields_for_style?(object)
          hash = object.class.new
          object.each { |k,v| hash[k] = yield v }
          hash
        else
          yield object
        end
      end