lib/require_reloader.rb
# 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 expanded_gem_path(gem, preferred_path)
      return File.expand_path(preferred_path) if preferred_path
      local_gem = local_gems.find {|g| g.name == gem}
      local_gem ? File.expand_path(local_gem.source.path.to_s) : false
    end
def expanded_gem_path ( gem , preferred_path ) return File . expand_path ( preferred_path ) if preferred_path local_gem = local_gems . find { | g | g . name == gem } local_gem ? File . expand_path ( local_gem . source . path . to_s ) : false 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 .
gem
preferred_path