mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-09-12 22:19:21 -04:00
removed unused Crop.random method
This commit is contained in:
1 parent
25cb3fd469
commit
1d81064ced
1 file changed
+4
-4
+4
-4
@@ -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