Skip to content

Commit

Permalink
Fixed typo in comment about MAX_ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
vajrasky committed Feb 23, 2014
1 parent e3d8194 commit 5ea67a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/fixtures.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def self.create_fixtures(fixtures_directory, fixture_set_names, class_names = {}
end end


# Returns a consistent, platform-independent identifier for +label+. # Returns a consistent, platform-independent identifier for +label+.
# Identifiers are positive integers less than 2^32. # Identifiers are positive integers less than 2^30.
def self.identify(label) def self.identify(label)
Zlib.crc32(label.to_s) % MAX_ID Zlib.crc32(label.to_s) % MAX_ID
end end
Expand Down

0 comments on commit 5ea67a2

Please sign in to comment.