Skip to content

Commit

Permalink
workaround to avoid JRuby autoload bug
Browse files Browse the repository at this point in the history
 * Workaround to avoid JRuby autoload bug.
 * Changed to require bio/db.rb because it is always loaded.
  • Loading branch information
ngoto committed Jul 4, 2012
1 parent ea50000 commit 8614f31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bio/db/kegg/genes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@

module Bio

autoload :KEGGDB, 'bio/db'
autoload :Locations, 'bio/location'
autoload :Sequence, 'bio/sequence'
autoload :Locations, 'bio/location' unless const_defined?(:Locations)
autoload :Sequence, 'bio/sequence' unless const_defined?(:Sequence)

require 'bio/db'
require 'bio/db/kegg/common'

class KEGG
Expand Down

0 comments on commit 8614f31

Please sign in to comment.