Skip to content

Commit

Permalink
Sort the required files to fix cases such as this ticket (Closes fcou…
Browse files Browse the repository at this point in the history
…ry#39) [branch14]
  • Loading branch information
radar committed Dec 26, 2009
1 parent 67f0543 commit 897be1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/octopi.rb
Expand Up @@ -12,7 +12,8 @@
Dir[File.join(File.dirname(__FILE__), "ext/*.rb")].each { |f| require f }

# Octopi stuff
Dir[File.join(File.dirname(__FILE__), "octopi/*.rb")].each { |f| require f }
# By sorting them we ensure that api and base are loaded first on all sane operating systems
(Dir[File.join(File.dirname(__FILE__), "octopi/*.rb")] - [base]).sort.each { |f| require f }

# Include this into your app so you can access the child classes easier.
# This is the root of all things Octopi.
Expand Down

0 comments on commit 897be1c

Please sign in to comment.