diff options
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/dependencies.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/dependencies.rb b/activesupport/lib/dependencies.rb index 96dcd7acb8..90b3dea5d5 100644 --- a/activesupport/lib/dependencies.rb +++ b/activesupport/lib/dependencies.rb @@ -9,6 +9,10 @@ module Dependencies @@mechanism = :load mattr_accessor :mechanism + def load? + mechanism == :load + end + def depend_on(file_name, swallow_load_errors = false) if !loaded.include?(file_name) loaded << file_name |