method

map

rails latest stable - Class: ActiveRecord::AttributeSet

Method deprecated or moved

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

map(&block)
public

No documentation available.

# File activerecord/lib/active_record/attribute_set.rb, line 92
    def map(&block)
      new_attributes = attributes.transform_values(&block)
      AttributeSet.new(new_attributes)
    end