Skip to content

Instantly share code, notes, and snippets.

@aaronvb
Created July 17, 2011 08:36
Show Gist options
  • Save aaronvb/1087368 to your computer and use it in GitHub Desktop.
Save aaronvb/1087368 to your computer and use it in GitHub Desktop.
if Rails.env == "development"
Dir.foreach("#{Rails.root}/app/models") do |model_name|
require_dependency model_name unless model_name == "." || model_name == ".."
end
end
@jensblond
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment