mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-03 06:09:04 -05:00
removed unused Crop.random method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user