aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-01-25 13:26:42 +1100
committerHenare Degan <henare.degan@gmail.com>2013-01-25 15:11:31 +1100
commitc489b13a34cc3fad084458515cfa74c5ef9aab06 (patch)
tree151935ee57d7e94ae99cfb169a8c127b983abc40
parent2eb33d8d683422743190bddead66e139b3f47b60 (diff)
Indentation and spacing fixes only
-rw-r--r--app/models/comment.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index 53d3b9088..70f3ba00d 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -40,6 +40,7 @@ class Comment < ActiveRecord::Base
ret = ret.gsub(/(?:\n\s*){2,}/, "\n\n") # remove excess linebreaks that unnecessarily space it out
ret
end
+
def raw_body
read_attribute(:body)
end
@@ -72,11 +73,12 @@ 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)
+
+ 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
private