lib/require_reloader.rb
def watch_local_gems!
      local_gems.each do |gem|
        # never reload itself for now, causing error raised in integration test
        next if gem.name == 'require_reloader'

        watch gem.name, :path => gem.source.path.to_s, :module_name => gem.metadata['module_name']
      end
    end
# Reload all local gems (that is, ones which have a :path attribute)
# automatically on each request.
#
# To use it, add 'RequireReloader.watch_local_gems!' to
# your config/environments/development.rb.
#
Reload all local gems (that is, ones which have a :path attribute)
automatically on each request.


Reload all local gems ( that is ones which have a : path attribute ) automatically on each request .
def watch_local_gems!
      local_gems.each do |gem|
        next if gem.name == 'require_reloader'
        watch gem.name, :path => gem.source.path.to_s, :module_name => gem.metadata['module_name']
      end
    end
def watch_local_gems! local_gems . each do | gem | next if gem . name == 'require_reloader' watch gem . name , :path => gem . source . path . to_s , :module_name => gem . metadata [ 'module_name' ] end end
Reload all local gems (that is, ones which have a :path attribute)
automatically on each request.
Reload all local gems ( that is ones which have a : path attribute ) automatically on each request .
# never reload itself for now, causing error raised in integration test