Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix a bug with status_id in site controller

  • Loading branch information...
commit a8e3dfd094e69fb6ce44409350e17f85a5bc00bf 1 parent e3bc394
@saturnflyer saturnflyer authored
View
2  CHANGELOG
@@ -2,6 +2,8 @@
=== Edge
+* Fixed a bug with status_id PostgreSQL [Jim Gay]
+
=== Refraction 0.9.0 (June 25, 2010)
* Pull in aggregate tags from the aggregation extension [John Muhl, Sean Cribbs, Jim Gay]
View
4 CONTRIBUTORS
@@ -5,7 +5,9 @@ core:
=== Edge
-=== 0.9.0
+* Jim Gay
+
+=== 0.9.0 Refraction
* Mario Visic
* Andrew Cates
View
4 app/controllers/site_controller.rb
@@ -31,10 +31,10 @@ def show_page
private
def batch_page_status_refresh
@changed_pages = []
- @pages = Page.find(:all, :conditions => {:status_id => Status[:scheduled]})
+ @pages = Page.find(:all, :conditions => {:status_id => Status[:scheduled].id})
@pages.each do |page|
if page.published_at <= Time.now
- page.status_id = Status[:published]
+ page.status_id = Status[:published].id
page.save
@changed_pages << page.id
end
Please sign in to comment.
Something went wrong with that request. Please try again.