aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application/routes_reloader.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-12-13 10:07:02 +0100
committerJosé Valim <jose.valim@gmail.com>2011-12-13 10:07:02 +0100
commit1f5b9bbdb377c1b0e29650a103bf53526ceefdd5 (patch)
treeb330d0a59a93cd128d6199725708a025c4692398 /railties/lib/rails/application/routes_reloader.rb
parent693d2be82706d7dc40af6860a26330c49c27f151 (diff)
downloadrails-1f5b9bbdb377c1b0e29650a103bf53526ceefdd5.tar.gz
rails-1f5b9bbdb377c1b0e29650a103bf53526ceefdd5.tar.bz2
rails-1f5b9bbdb377c1b0e29650a103bf53526ceefdd5.zip
Clean up FileUpdateChecker API.
Diffstat (limited to 'railties/lib/rails/application/routes_reloader.rb')
-rw-r--r--railties/lib/rails/application/routes_reloader.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/lib/rails/application/routes_reloader.rb b/railties/lib/rails/application/routes_reloader.rb
index 460b84dfd9..e080481976 100644
--- a/railties/lib/rails/application/routes_reloader.rb
+++ b/railties/lib/rails/application/routes_reloader.rb
@@ -3,12 +3,12 @@ require "active_support/core_ext/module/delegation"
module Rails
class Application
class RoutesReloader
- attr_reader :route_sets
-
- delegate :paths, :execute_if_updated, :updated?, :to => :@updater
+ attr_reader :route_sets, :paths
+ delegate :execute_if_updated, :updated?, :to => :@updater
def initialize(updater=ActiveSupport::FileUpdateChecker)
- @updater = updater.new([]) { reload! }
+ @paths = []
+ @updater = updater.new(paths) { reload! }
@route_sets = []
end