remove duplicated order_with_pinned_sql method

This commit is contained in:
Régis Hanol 2014-01-18 18:01:55 +01:00
parent aca53aa722
commit 59ab71b060
1 changed files with 0 additions and 8 deletions

View File

@ -46,13 +46,5 @@ module TopicQuerySQL
"CASE WHEN (topics.pinned_at IS NOT NULL) THEN 0 ELSE 1 END, topics.bumped_at DESC"
end
def order_with_pinned_sql
"CASE
WHEN (COALESCE(topics.pinned_at, '#{lowest_date}') > COALESCE(tu.cleared_pinned_at, '#{lowest_date}'))
THEN '#{highest_date}'
ELSE topics.bumped_at
END DESC"
end
end
end