Method: ActiveRecord::FixtureSet.identify
- Defined in:
- lib/active_record/fixtures.rb
.identify(label) ⇒ Object
Returns a consistent, platform-independent identifier for label. Identifiers are positive integers less than 2^32.
502 503 504 |
# File 'lib/active_record/fixtures.rb', line 502 def self.identify(label) Zlib.crc32(label.to_s) % MAX_ID end |