static public Method

Fixtures.identify(label)

Returns a consistent identifier for label. This will always be a positive integer, and will always be the same for a given label, assuming the same OS, platform, and version of Ruby.

Source Code

# File active_record/fixtures.rb, line 539
def self.identify(label)
  label.to_s.hash.abs
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.