Sha256: 2d323226d5d4356036f35a9d665d9f27d1830f99994428a47564a57b2a62f847
Contents?: true
Size: 594 Bytes
Versions: 16
Compression:
Stored size: 594 Bytes
Contents
module AccessFixtureTestPatches def table_rows results = super if model_class && model_class < ActiveRecord::Base && model_class.record_modifications results[ table_name ].each do | row | # 135138680 is the 'admin' user row['created_by_id'] ||= 135138680 if model_class.column_names.include?('created_by_id') row['updated_by_id'] ||= 135138680 if model_class.column_names.include?('updated_by_id') end end results end end ActiveRecord::FixtureSet.prepend AccessFixtureTestPatches
Version data entries
16 entries across 16 versions & 2 rubygems