Permalink
Browse files

method rename to fix a broken test

  • Loading branch information...
1 parent 32b0b5f commit bb2327d9abdb03c7b6e15f30467c801058183ed2 @fxn fxn committed May 17, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/test/cases/associations/eager_load_nested_include_test.rb
@@ -4,6 +4,7 @@
require 'models/comment'
require 'models/category'
require 'models/categorization'
+require 'active_support/core_ext/array/random_access'
module Remembered
def self.included(base)
@@ -17,7 +18,7 @@ def remember; self.class.remembered << self; end
module ClassMethods
def remembered; @@remembered ||= []; end
- def rand; @@remembered.rand; end
+ def random_element; @@remembered.random_element; end
end
end

0 comments on commit bb2327d

Please sign in to comment.