more boolean correcting
This commit is contained in:
parent
b875d14b7c
commit
67a50e848c
1 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,8 @@ class TraceController < ApplicationController
|
||||||
conditions << @tag
|
conditions << @tag
|
||||||
end
|
end
|
||||||
|
|
||||||
conditions[0] += " AND gpx_files.visible = 1" #FIXME: use boolean true as parameter to active record
|
conditions[0] += " AND gpx_files.visible = ?"
|
||||||
|
conditions << true
|
||||||
|
|
||||||
@trace_pages, @traces = paginate(:traces,
|
@trace_pages, @traces = paginate(:traces,
|
||||||
:include => [:user, :tags],
|
:include => [:user, :tags],
|
||||||
|
@ -196,7 +197,7 @@ class TraceController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def georss
|
def georss
|
||||||
conditions = ["gpx_files.public = 1"] # fixme pass boolean true as parameter
|
conditions = ["gpx_files.public = ?", true]
|
||||||
|
|
||||||
if params[:display_name]
|
if params[:display_name]
|
||||||
conditions[0] += " AND users.display_name = ?"
|
conditions[0] += " AND users.display_name = ?"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue