<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -128,6 +128,11 @@ module ActiveScaffold
       @active_scaffold_custom_paths &lt;&lt; path
     end
 
+    def add_active_scaffold_override_path(path)
+      @active_scaffold_paths = nil # Force active_scaffold_paths to rebuild
+      @active_scaffold_overrides.unshift path
+    end
+
     def active_scaffold_paths
       @active_scaffold_paths ||= ActionView::PathSet.new(@active_scaffold_overrides + @active_scaffold_custom_paths + @active_scaffold_frontends) unless @active_scaffold_overrides.nil? || @active_scaffold_custom_paths.nil? || @active_scaffold_frontends.nil?
     end</diff>
      <filename>lib/active_scaffold.rb</filename>
    </modified>
    <modified>
      <diff>@@ -200,7 +200,7 @@ module ActiveScaffold
 
       def override_form_field_partial?(column)
         path, partial_name = partial_pieces(override_form_field_partial(column))
-        template_exists?(File.join(path, &quot;_#{partial_name}&quot;))
+        template_exists?(File.join(path, &quot;_#{partial_name}&quot;), true)
       end
 
       # the naming convention for overriding form fields with partials</diff>
      <filename>lib/active_scaffold/helpers/form_column_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -74,9 +74,11 @@ module ActionView #:nodoc:
     # This is the template finder logic, keep it updated with however we find stuff in rails
     # currently this very similar to the logic in ActionBase::Base.render for options file
     # TODO: Work with rails core team to find a better way to check for this.
-    def template_exists?(template_name)
+    def template_exists?(template_name, lookup_overrides = false)
       begin
-        self.view_paths.find_template_without_active_scaffold(template_name, @template_format)
+        method = 'find_template'
+        method &lt;&lt; '_without_active_scaffold' unless lookup_overrides
+        self.view_paths.send(method, template_name, @template_format)
         return true
       rescue ActionView::MissingTemplate =&gt; e
         return false</diff>
      <filename>lib/extensions/action_view_rendering.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5a68f85d25de68e4d7e8add898dafbb8da5842bd</id>
    </parent>
  </parents>
  <author>
    <name>Sergio Cambra</name>
    <email>sergio@entrecables.com</email>
  </author>
  <url>http://github.com/activescaffold/active_scaffold/commit/39ee51f829bc44ad8475ec669c9d4a59cc22af56</url>
  <id>39ee51f829bc44ad8475ec669c9d4a59cc22af56</id>
  <committed-date>2009-07-07T15:57:37-07:00</committed-date>
  <authored-date>2009-07-07T15:57:37-07:00</authored-date>
  <message>Lookup form override partials in active_scaffold paths, so you can add a view path to some controllers with some form override partials to share, or put some form override partials to share in app/views/active_scaffold_overrides</message>
  <tree>b0591acf4094c4dedf4f9b3e5cceab239aba4032</tree>
  <committer>
    <name>Sergio Cambra</name>
    <email>sergio@entrecables.com</email>
  </committer>
</commit>
