Skip to content

Commit

Permalink
improve Rails 2.x / Isolate compatibility with 'script/generate hopto…
Browse files Browse the repository at this point in the history
…ad' by requiring 'app/controllers/application*.rb' with absolute paths
  • Loading branch information
fallwith authored and Jon Yurek committed Mar 30, 2011
1 parent 0b146ca commit ea8535a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hoptoad_notifier/tasks.rb
Expand Up @@ -8,7 +8,7 @@

require 'action_controller/test_process'

Dir["app/controllers/application*.rb"].each { |file| require(file) }
Dir["app/controllers/application*.rb"].each { |file| require(File.expand_path(file)) }

class HoptoadTestingException < RuntimeError; end

Expand Down

0 comments on commit ea8535a

Please sign in to comment.