Skip to content

Instantly share code, notes, and snippets.

@MischaTheEvil
Created June 10, 2009 22:22
Show Gist options
  • Save MischaTheEvil/127548 to your computer and use it in GitHub Desktop.
Save MischaTheEvil/127548 to your computer and use it in GitHub Desktop.
Rails::Plugin.class_eval do
def reloadable!
load_paths.each { |p| Dependencies.load_once_paths.delete(p) }
end
end
reloadable!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment