# Recognize frozen gems without loading rails environment?

**URL:** <https://www.ruby-forum.com/t/recognize-frozen-gems-without-loading-rails-environment/154127>\
**Category:** Rails\
**Created:** [November 25, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/recognize-frozen-gems-without-loading-rails-environment/154127 "2008-11-25T17:21:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 25, 2008, 5:21pm UTC](https://www.ruby-forum.com/t/recognize-frozen-gems-without-loading-rails-environment/154127/1 "2008-11-25T17:21:07Z")

</div>

Hi all,

Does anyone know of a simple way to recognize frozen gems without  
loading the entire rails environment?

One thought is to just modify ENV[‘GEM\_PATH’] and then call  
Gem.clear\_paths. But I know that a lot of work was done on gem  
loading in 2.2, and I’m wondering if there is a better way to do this.

Thanks in advance!  
Taylor
