aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/comment.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-05-23 01:53:38 -0700
committerSeb Bacon <seb.bacon@gmail.com>2012-05-23 01:53:38 -0700
commit8300398b9f4666c102d6c205f1b94e00b8017014 (patch)
treebfecc1ae98ff202e4063714c267afde0692f1ca7 /app/models/comment.rb
parent20b2a3c493d19b1ea66ba2605053af05f0595f7f (diff)
parent820e124c20865c17eeea2e17c5bb82da620ada5b (diff)
Merge pull request #493 from sebbacon/feature/merge-wombleton-sparkly-admin-css
Merge @wombleton sparkly admin css
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 44a1079cd..b3d5ba640 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -84,7 +84,9 @@ class Comment < ActiveRecord::Base
return Comment.find(:first, :conditions => [ "info_request_id = ? and body = ?", info_request_id, body ])
end
end
-
+ def for_admin_column
+ self.class.content_columns.each do |column|
+ yield(column.human_name, self.send(column.name), column.type.to_s, column.name)
+ end
+ end
end
-
-