Prevent Application from crash cause of charloc_cholmes error

This commit is contained in:
Dmitriy Zaporozhets 2012-03-02 19:42:28 +03:00
parent b603e0dc45
commit 770f18ac50

View file

@ -11,6 +11,9 @@ end
Grit::GitRuby::Internal::RawObject.class_eval do Grit::GitRuby::Internal::RawObject.class_eval do
def content def content
transcoding(@content) transcoding(@content)
rescue Exception => ex
Rails.logger.error ex.message
@content
end end
private private