<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -84,11 +84,7 @@ protected
   # Returns a path to plugin layout, if it's unspecified, otherwise
   # a path to an application layout...
   def get_page_layout
-    if params[:layout] == 'comatose_content'
-      File.join(plugin_layout_path, params[:layout])
-    else
-      params[:layout]
-    end
+    params[:layout]
   end
 
   # An after_filter implementing page caching if it's enabled, globally, 
@@ -112,8 +108,8 @@ protected
     response.headers[&quot;Content-Type&quot;] = &quot;text/html; charset=#{Comatose.config.content_type}&quot; unless Comatose.config.content_type.nil? or response.headers['Status'] == '404 Not Found'
   end
 
-  # Path to layouts within the plugin... Assumes the plugin directory name is 'comatose'
-  define_option :plugin_layout_path, File.join( '..', '..', '..', 'vendor', 'plugins', 'comatose', 'views', 'layouts'  )
+  COMATOSE_VIEW_PATH = File.join(RAILS_ROOT, 'vendor', 'plugins', 'comatose', 'views')
+  ActionController::Base.append_view_path(COMATOSE_VIEW_PATH) unless ActionController::Base.view_paths.include?(COMATOSE_VIEW_PATH)
 
   # Include any, well, includes...
   Comatose.config.includes.each do |mod|</diff>
      <filename>lib/comatose_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b5b7d071d2405e7f63a335695aeaae8df12c4be</id>
    </parent>
  </parents>
  <author>
    <name>Michael Kovacs</name>
    <email>mkovacs@Macintosh-10.local</email>
  </author>
  <url>http://github.com/darthapo/comatose/commit/ba32c63ed4dc24e44408eeba760bc3639f6dd77c</url>
  <id>ba32c63ed4dc24e44408eeba760bc3639f6dd77c</id>
  <committed-date>2009-02-26T20:38:34-08:00</committed-date>
  <authored-date>2008-11-19T12:22:41-08:00</authored-date>
  <message>Update main controller to append the comatose view path

Signed-off-by: M@ McCray &lt;darthapo@gmail.com&gt;</message>
  <tree>3a971873bbddc8e39e690b39ea7d983afeb6da1f</tree>
  <committer>
    <name>M@ McCray</name>
    <email>darthapo@gmail.com</email>
  </committer>
</commit>
