diff options
author | gitlabhq <m@gitlabhq.com> | 2011-10-21 21:55:50 +0300 |
---|---|---|
committer | gitlabhq <m@gitlabhq.com> | 2011-10-21 21:55:50 +0300 |
commit | ce9b8e7b12c61732cc181894e9b4f7dbab1f22a5 (patch) | |
tree | b23f93535fd986c9036b07644cbdd7e41d530d5d /app/models/snippet.rb | |
parent | 0f0c562de09e325c5689b3db8e646b68322f5515 (diff) | |
parent | 421b11158d8420b3fe337b63d5686c24b5644c94 (diff) | |
download | gitlab-ce-ce9b8e7b12c61732cc181894e9b4f7dbab1f22a5.tar.gz |
Merge branch 'dev' into feature/team_member_role_validation
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 0a54fee7e2f..95d6a07d545 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -1,4 +1,6 @@ class Snippet < ActiveRecord::Base + include Utils::Colorize + belongs_to :project belongs_to :author, :class_name => "User" has_many :notes, :as => :noteable @@ -28,6 +30,10 @@ class Snippet < ActiveRecord::Base ".js", ".sh", ".coffee", ".yml", ".md" ] end + + def colorize + system_colorize(content, file_name) + end end # == Schema Information # |