method

select

rails latest stable - Class: ActiveModel::LazyAttributeHash

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

select()
public

No documentation available.

# File activemodel/lib/active_model/attribute_set/builder.rb, line 60
    def select
      keys = types.keys | values.keys | delegate_hash.keys
      keys.each_with_object({}) do |key, hash|
        attribute = self[key]
        if yield(key, attribute)
          hash[key] = attribute
        end
      end
    end