gitlabhq/lib/commit_ext.rb

21 lines
326 B
Ruby
Raw Normal View History

2011-10-24 21:38:03 +02:00
module CommitExt
attr_accessor :head
2011-11-12 23:30:51 +01:00
attr_accessor :refs
2011-10-25 06:32:02 +02:00
def safe_message
2011-11-18 03:55:08 +01:00
message.force_encoding(Encoding::UTF_8)
2011-10-24 21:38:03 +02:00
end
2011-10-31 21:57:16 +01:00
def created_at
committed_date
end
def author_email
author.email.force_encoding(Encoding::UTF_8)
end
def author_name
author.name.force_encoding(Encoding::UTF_8)
end
2011-10-24 21:38:03 +02:00
end