lib/scout/server.rb in scout-1.1.0 vs lib/scout/server.rb in scout-1.1.1

- old
+ new

@@ -134,9 +134,17 @@ end else debug "Plugin does not need to be run at this time. " + "(last run: #{last_run || 'nil'})" end + ensure + debug "Removing plugin code..." + begin + Object.send(:remove_const, Plugin.last_defined.to_s.split("::").first) + info "Plugin Removed." + rescue + error "Unable to remove plugin." + end info "Plugin #{plugin[:name]} processing complete." data end #