| Module | Dependencies |
| In: |
vendor/activesupport/lib/active_support/dependencies.rb
|
# File vendor/activesupport/lib/active_support/dependencies.rb, line 30
30: def associate_with(file_name)
31: depend_on(file_name, true)
32: end
# File vendor/activesupport/lib/active_support/dependencies.rb, line 34
34: def clear
35: self.loaded = [ ]
36: end
# File vendor/activesupport/lib/active_support/dependencies.rb, line 16
16: def depend_on(file_name, swallow_load_errors = false)
17: if !loaded.include?(file_name)
18: loaded << file_name
19:
20: begin
21: require_or_load(file_name)
22: rescue LoadError
23: raise unless swallow_load_errors
24: rescue Object => e
25: raise ScriptError, "#{e.message}"
26: end
27: end
28: end
# File vendor/activesupport/lib/active_support/dependencies.rb, line 12
12: def load?
13: mechanism == :load
14: end
# File vendor/activesupport/lib/active_support/dependencies.rb, line 43
43: def remove_subclasses_for(*classes)
44: classes.each { |klass| klass.remove_subclasses }
45: end