Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def load_application_classes
- return if $rails_rake_task
- if configuration.cache_classes
- configuration.eager_load_paths.each do |load_path|
- matcher = /\A#{Regexp.escape(load_path)}(.*)\.rb\Z/
- Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
- require_dependency file.sub(matcher, '\1')
- end
- end
- end
Add Comment
Please, Sign In to add comment