method

composite_identify

rails latest stable - Class: ActiveRecord::FixtureSet
composite_identify(label, key)
public

Returns a consistent, platform-independent hash representing a mapping between the label and the subcomponents of the provided composite key.

Example:

composite_identify("label", [:a, :b, :c]) # => { a: hash_1, b: hash_2, c: hash_3 }