Skip to content

Commit

Permalink
Fix: assemble.rb was being loaded by both add_routes and reload on st…
Browse files Browse the repository at this point in the history
…artup. Removed load assemble.rb from add_routes
  • Loading branch information
James Garlick committed Jun 20, 2008
1 parent 46f0815 commit d5f0657
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hobo/lib/hobo/model_router.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def add_routes(map)
end

require "#{APP_ROOT}/controllers/application" unless Object.const_defined? :ApplicationController
load "#{APP_ROOT}/assemble.rb" if File.exists? "#{APP_ROOT}/assemble.rb"

# Don't create routes if it's a generator that's running
return if caller[-1] =~ /script[\/\\]generate:\d+$/ || caller[-1] =~ /script[\/\\]destroy:\d+$/
Expand Down

0 comments on commit d5f0657

Please sign in to comment.