[typo] Boolean change for Postgres
Peter Donald
peter.j.donald at gmail.com
Tue Jan 10 06:13:01 EST 2006
Hi,
There is a minor modification required for non-mysql databases.
components/plugins/sidebars/archives_controller.rb
@@ -14,7 +14,7 @@
def content
@archives = Hash.new
- Article.find(:all, :conditions => 'published != 0', :order =>
'created_at DESC').each do |a|
+ Article.find(:all, :conditions => ['published != ?', false],
:order => 'created_at DESC').each do |a|
index = a.created_at.strftime("%Y-%m").to_sym
if @archives[index].nil?
--
Cheers,
Peter Donald
More information about the Typo-list
mailing list