Permalink
Browse files

changed date format for csv

  • Loading branch information...
1 parent d1945f6 commit 82b9dc631797de93c88906e1a772a9326b38dd98 Michael Hale committed Jul 24, 2008
Showing with 6 additions and 2 deletions.
  1. +6 −2 app/models/comment.rb
View
@@ -6,8 +6,12 @@ class Comment < ActiveRecord::Base
before_save :apply_filter
def export_columns(format = nil)
- %w[approved? author content created_at referrer]
- end
+ %w[approved? author content created_at_for_export referrer]
+ end
+
+ def created_at_for_export
+ created_at.strftime "%m/%d/%Y"
+ end
def self.per_page
50

0 comments on commit 82b9dc6

Please sign in to comment.