method
interpolate_label
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::FixtureSet::TableRow::PrimaryKeyError
interpolate_label()public
No documentation available.
# File activerecord/lib/active_record/fixture_set/table_row.rb, line 112
def interpolate_label
# interpolate the fixture label
@row.each do |key, value|
@row[key] = value.gsub("$LABEL", @label.to_s) if value.is_a?(String)
end
end