Skip to content

Commit

Permalink
changed date format for csv
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hale committed Jul 24, 2008
1 parent d1945f6 commit 82b9dc6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/models/comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82b9dc6

Please sign in to comment.