Ive made a quote of a little hunting around for this, but in the end he took some trial and error.
Library / my_gem / my_gem.rb:
require 'active_support/dependencies' ActiveSupport::Dependencies.autoload_paths += [File.expand_path("..", __FILE__)] module MyGem include ActiveSupport::Dependencies unloadable end
Be sure to add "unloadable" to all your classes.
aceofspades
source share