refactoring

This commit is contained in:
albert
2011-06-25 19:31:39 -04:00
parent 28d179708f
commit 739e28919a
11 changed files with 159 additions and 54 deletions

View File

@@ -1,7 +1,7 @@
module PostSets
class Base
def has_wiki?
is_single_tag?
false
end
def wiki_page
@@ -9,20 +9,20 @@ module PostSets
end
def has_artist?
is_single_tag?
false
end
def artist
end
def presenter
@presenter ||= PostSetPresenter.new(self)
end
def is_single_tag?
false
end
def presenter
raise NotImplementedError
end
def arbitrary_sql_order_clause(ids, table_name)
if ids.empty?
return "#{table_name}.id desc"