summaryrefslogtreecommitdiff
path: root/app/models/snippet.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-21 15:35:42 +0300
committergitlabhq <m@gitlabhq.com>2011-10-22 14:08:03 +0300
commitb3279b9b5170a19a2aa504eae94a9a8be5908755 (patch)
treef2a17f15baf358d66807f510a9d1dfd1e2104d94 /app/models/snippet.rb
parentd49645a01348e093b87586b3575e93233d497aea (diff)
downloadgitlab-ce-b3279b9b5170a19a2aa504eae94a9a8be5908755.tar.gz
moved from albino -> pygments.rb
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r--app/models/snippet.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb
index 119b69a4525..95d6a07d545 100644
--- a/app/models/snippet.rb
+++ b/app/models/snippet.rb
@@ -32,8 +32,7 @@ class Snippet < ActiveRecord::Base
end
def colorize
- ft = handle_file_type(file_name)
- Albino.colorize(content, ft, :html, 'utf-8', "linenos=True")
+ system_colorize(content, file_name)
end
end
# == Schema Information