removed unused Crop.random method

This commit is contained in:
Skud committed 2014-10-15 14:03:00 +01:00
1 parent 25cb3fd469
commit 1d81064ced
1 file changed
+4 -4
+4 -4
View File
@@ -30,10 +30,10 @@ class Crop < ActiveRecord::Base
:message => 'is not a valid English Wikipedia URL'
}
def Crop.random
@crop = Crop.offset(rand(Crop.count)).first
return @crop
end
# def Crop.random
# @crop = Crop.offset(rand(Crop.count)).first
# return @crop
#aend
def to_s
return name