Guest User

Untitled

a guest
Jun 19th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. def load_application_classes
  2. return if $rails_rake_task
  3. if configuration.cache_classes
  4. configuration.eager_load_paths.each do |load_path|
  5. matcher = /\A#{Regexp.escape(load_path)}(.*)\.rb\Z/
  6. Dir.glob("#{load_path}/**/*.rb").sort.each do |file|
  7. require_dependency file.sub(matcher, '\1')
  8. end
  9. end
  10. end
Add Comment
Please, Sign In to add comment