<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,13 +7,13 @@ class ConcurrentDraftExtension &lt; Radiant::Extension
   url &quot;http://github.com/avonderluft/concurrent_draft/tree/master&quot;
 
   define_routes do |map|
-    map.page_schedule_draft_promotion 'admin/pages/:id/schedule_draft_promotion',
+    map.page_schedule_draft_promotion 'admin/pages/schedule_draft_promotion/:id',
       :controller =&gt; 'admin/pages', :action =&gt; 'schedule_draft_promotion'
-    map.snippet_schedule_draft_promotion 'admin/snippet/:id/schedule_draft_promotion',
+    map.snippet_schedule_draft_promotion 'admin/snippet/schedule_draft_promotion/:id',
       :controller =&gt; 'admin/snippets', :action =&gt; 'schedule_draft_promotion'
-    map.layout_schedule_draft_promotion 'admin/layout/:id/schedule_draft_promotion',
+    map.layout_schedule_draft_promotion 'admin/layout/schedule_draft_promotion/:id',
       :controller =&gt; 'admin/layouts', :action =&gt; 'schedule_draft_promotion'
-    map.page_unpublish 'admin/pages/:id/unpublish', :controller =&gt; 'admin/pages', :action =&gt; 'unpublish'
+    map.page_unpublish 'admin/pages/unpublish/:id', :controller =&gt; 'admin/pages', :action =&gt; 'unpublish'
   end
 
   def activate</diff>
      <filename>concurrent_draft_extension.rb</filename>
    </modified>
    <modified>
      <diff>@@ -8,7 +8,7 @@ module ConcurrentDraft::AdminControllerExtensions
           :when =&gt; [:publisher, :admin],
           :denied_message =&gt; &quot;You must have publisher privileges to execute this action.&quot;,
           :denied_url =&gt; {:action =&gt; 'edit'}
-      after_filter :check_for_promote_now, :only =&gt; :update
+      after_filter :check_for_promote_now, :only =&gt; [:create, :update]
     end
   end
 
@@ -17,9 +17,11 @@ module ConcurrentDraft::AdminControllerExtensions
   end
 
   def check_for_promote_now
-    model.promote_draft! if params[:promote] &amp;&amp; authorized_user?
-    flash[:notice] = &quot;The existing draft #{model_class.to_s.downcase} has been saved and promoted, and is now live.&quot;
-    flash.keep
+    if params[:promote] &amp;&amp; authorized_user?
+      model.promote_draft!
+      flash[:notice] = &quot;The existing draft #{model_class.to_s.downcase} has been saved and promoted, and is now live.&quot;
+      flash.keep
+    end
   end
 
   def schedule_draft_promotion</diff>
      <filename>lib/concurrent_draft/admin_controller_extensions.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5331982e2f73d95a66cb4115d41df1f353b93192</id>
    </parent>
  </parents>
  <author>
    <name>Andrew vonderLuft</name>
    <email>avonderluft@avlux.net</email>
  </author>
  <url>http://github.com/avonderluft/radiant-concurrent_draft-extension/commit/432f4a3cb39fd091cc6ded57baebfcb770c3aa28</url>
  <id>432f4a3cb39fd091cc6ded57baebfcb770c3aa28</id>
  <committed-date>2009-04-16T08:34:24-07:00</committed-date>
  <authored-date>2009-04-16T08:34:24-07:00</authored-date>
  <message>handle promote now with newly created page; fix routes.</message>
  <tree>585f00179326efb46de9e16a8df510b10f1b8d0e</tree>
  <committer>
    <name>Andrew vonderLuft</name>
    <email>avonderluft@avlux.net</email>
  </committer>
</commit>
