Tomatoes - scientific name upload bugfix

Fixed a bug causing duplicate SNs when uploading crops that inherit a SN from their parent.
Oops, yes I should!  I commented it out to test if it broke any tests 
then forgot to actually delete.

A.

On 15/10/2014 4:43 pm, pozorvlak wrote:
>
> In app/models/crop.rb:
>
> > @@ -33,10 +33,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
>
> I think you should just delete this rather than commenting it out.
>
> —
> Reply to this email directly or view it on GitHub 
> <https://github.com/Growstuff/growstuff/pull/429/files#r18901892>.
>

-- 
Alex "Skud" Bayley
skud@growstuff.org
http://growstuff.org/