Archives sidebar is broken against datamapper edge
Reported by AJ | July 8th, 2008 @ 06:30 PM | in 0.5
The archives getter was disabled a while ago due to incompatibilities against the datamapper edge.
commit 17e1dda086509e223c48cac5422dd5236576d8d8
Author: Alexander Flatter <flatter@alexander-flatters-macbo...>
Date: Wed May 14 18:10:04 2008 +0200
Seems to be compatible to current datamapper trunk
---
app/controllers/articles.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/app/controllers/articles.rb b/app/controllers/articles.rb
index 326b3a3..99c35d0 100644
--- a/app/controllers/articles.rb
+++ b/app/controllers/articles.rb
@@ -3,7 +3,8 @@ class Articles < Application
# This handles the index (recent articles), or the year/month/day views
def index
- @archives = Article.get_archive_hash
+ #@archives = Article.get_archive_hash
+ @archives = []
if params[:day]
@articles = Article.find_by_year_month_day(params[:year], params[:month], params[:day])
elsif params[:month]
I've fixed the related code, and made it so that we don't load up config/database.yml to get at the adapter.
Comments and changes to this ticket
-
AJ July 21st, 2008 @ 05:11 PM
- State changed from new to resolved
- Tag set to archives, articles, feather
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.