Permalink
Browse files

require things that i relay on

  • Loading branch information...
1 parent 93138f6 commit e0311cf5a93bfee14556e8cddb7e39f2cbab7138 @paneq committed Jan 14, 2012
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/active_reload.rb
@@ -1,4 +1,7 @@
require "active_reload/version"
+require 'rails/railtie'
+require 'active_support/notifications'
+require 'active_support/dependencies'
module ActiveReload
@@ -47,7 +50,7 @@ def self.proc_source
ActionDispatch::Callbacks
end
end
-
+
def self.replace_proc?(last)
last.respond_to?(:raw_filter) &&
last.raw_filter.is_a?(Proc) &&
@@ -56,7 +59,7 @@ def self.replace_proc?(last)
def self.replace!
return unless replace?
-
+
ActiveSupport::Notifications.instrument("active_reload.set_clear_dependencies_hook_replaced") do
changed_at = Proc.new do
@@ -98,5 +101,5 @@ def self.rails31?
rails3? && Rails::VERSION::MINOR == 1
end
-
+
end

0 comments on commit e0311cf

Please sign in to comment.