From 3d1e8dde9d023cc3d2c75dea689648434050d621 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 24 Jan 2005 10:58:17 +0000 Subject: Fixed handling of syntax errors in models that had already been succesfully required once in the current interpreter. Fixed superclass mismatch and other controller related problems by not using dependency reloading for controllers. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@482 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/dependencies.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport') 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 -- cgit v1.2.3