Skip to content

Instantly share code, notes, and snippets.

@bsbodden
Created March 11, 2010 22:32
Show Gist options
  • Save bsbodden/329764 to your computer and use it in GitHub Desktop.
Save bsbodden/329764 to your computer and use it in GitHub Desktop.
config.after_initialize do
Dir["#{RAILS_ROOT}/app/models/**/*.rb"].each { |f| require(f) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment