<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -82,14 +82,6 @@ module ActionController #:nodoc:
 
         def inherited(child)
           inherited_without_model(child)
-          return if child.controller_name == &quot;application&quot; # otherwise the ApplicationController in Rails will include itself
-          model_name = child.controller_name.singularize
-          begin
-            require_dependency model_name
-            child.model model_name
-          rescue MissingSourceFile =&gt; e
-            raise unless e.path == model_name + '.rb'
-          end
         end        
     end
   end</diff>
      <filename>actionpack/lib/action_controller/dependencies.rb</filename>
    </modified>
    <modified>
      <diff>@@ -93,7 +93,7 @@ module ActionController #:nodoc:
           inherited_without_helper(child)
           begin child.helper(child.controller_path)
           rescue MissingSourceFile =&gt; e
-            raise unless e.path == &quot;helpers/#{child.controller_path}_helper.rb&quot;
+            raise unless e.is_missing?(&quot;helpers/#{child.controller_path}_helper&quot;)
           end
         end        
     end</diff>
      <filename>actionpack/lib/action_controller/helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -86,7 +86,7 @@ module ActionWebService # :nodoc:
             inherited_without_api(child)
             begin child.web_service_api(child.controller_path)
             rescue MissingSourceFile =&gt; e
-              raise unless e.path == &quot;apis/#{child.controller_path}_api.rb&quot;
+              raise unless e.is_missing?(&quot;apis/#{child.controller_path}_api&quot;)
             end
           end
       end</diff>
      <filename>actionwebservice/lib/action_web_service/container/action_controller_container.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,7 @@
 *SVN*
 
+* Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]
+
 * Fixed that :counter_cache option would look for a line_items_count column for a LineItem object instead of lineitems_count
 
 * Fixed that AR exists?() would explode on postgresql if the passed id did not match the PK type #900 [Scott Barron]</diff>
      <filename>activerecord/CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -4,6 +4,10 @@ class MissingSourceFile &lt; LoadError
     super(message)
     @path = path
   end
+
+  def is_missing?(path)
+    path.gsub(/\.rb$/, '') == self.path.gsub(/\.rb$/, '')
+  end
   
   def self.from_message(message)
     REGEXPS.each do |regexp, capture|
@@ -31,4 +35,4 @@ module ActiveSupport
       ::LoadError.extend(LoadErrorClassMethods)
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>activesupport/lib/active_support/core_ext/load_error.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a5c694283010c05ee39bc0757e8013b3aa382992</id>
    </parent>
  </parents>
  <author>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </author>
  <url>http://github.com/josh/rails/commit/45137795e8db0c47c0bc16712b0a24807459e252</url>
  <id>45137795e8db0c47c0bc16712b0a24807459e252</id>
  <committed-date>2005-03-25T01:07:01-08:00</committed-date>
  <authored-date>2005-03-25T01:07:01-08:00</authored-date>
  <message>Fixed that MissingSourceFile's wasn't properly detected in production mode #925 [Nicholas Seckar]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@990 5ecf4fe2-1ee6-0310-87b1-e25e094e27de</message>
  <tree>d6edb02c996e43e638cf0e473adaa6ac61321976</tree>
  <committer>
    <name>David Heinemeier Hansson</name>
    <email>david@loudthinking.com</email>
  </committer>
</commit>
