From f0c22d4ad5c61e7e683291fd42e143d1a339c3a2 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 10 Jul 2006 19:41:59 +0000 Subject: occured -> occurred. Closes #5559. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4604 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/active_support/dependencies.rb | 4 ++-- activesupport/lib/active_support/whiny_nil.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb index c1da53c878..17ca446650 100644 --- a/activesupport/lib/active_support/dependencies.rb +++ b/activesupport/lib/active_support/dependencies.rb @@ -163,11 +163,11 @@ class Exception #:nodoc: def describe_blame return nil if blamed_files.empty? - "This error occured while loading the following files:\n #{blamed_files.join "\n "}" + "This error occurred while loading the following files:\n #{blamed_files.join "\n "}" end def copy_blame!(exc) @blamed_files = exc.blamed_files.clone self end -end \ No newline at end of file +end diff --git a/activesupport/lib/active_support/whiny_nil.rb b/activesupport/lib/active_support/whiny_nil.rb index 61cbe98e2b..cee510afbd 100644 --- a/activesupport/lib/active_support/whiny_nil.rb +++ b/activesupport/lib/active_support/whiny_nil.rb @@ -30,7 +30,7 @@ class NilClass def raise_nil_warning_for(klass = nil, selector = nil, with_caller = nil) message = "You have a nil object when you didn't expect it!" message << "\nYou might have expected an instance of #{klass}." if klass - message << "\nThe error occured while evaluating nil.#{selector}" if selector + message << "\nThe error occurred while evaluating nil.#{selector}" if selector raise NoMethodError, message, with_caller || caller end -- cgit v1.2.3