lib/rack/unreloader/reloader.rb
# Store the currently loaded classes and features, so in case of an error
# this state can be rolled back to.
Store the currently loaded classes and features, so in case of an error
this state can be rolled back to.
Store the currently loaded classes and features so in case of an error this state can be rolled back to .
def prepare(name)
        remove(name)
        @old_entries[name] = {:features => monitored_features}
        if constants = constants_for(name)
          defs = constants.select{|c| constant_defined?(c)}
          unless defs.empty?
            log "Constants already defined before loading #{name}: #{defs.join(" ")}"
          end
          @old_entries[name][:constants] = constants
        else
          @old_entries[name][:all_classes] = all_classes
        end
      end
def prepare ( name ) remove ( name ) @old_entries [ name ] = { :features => monitored_features } if constants = constants_for ( name ) defs = constants . select { | c | constant_defined? ( c ) } unless defs . empty? log "Constants already defined before loading #{name}: #{defs.join(" ")}" end @old_entries [ name ] [ :constants ] = constants else @old_entries [ name ] [ :all_classes ] = all_classes end end
Store the currently loaded classes and features, so in case of an error
this state can be rolled back to.
Store the currently loaded classes and features so in case of an error this state can be rolled back to .
name