diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-22 00:29:57 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-01-22 00:29:57 +0900 |
commit | 4df2fbe73be728b23990bc0cea461dc564dc8e9c (patch) | |
tree | 02e787c9f1331a8404dab6a93393537d3ab0fe7b /app | |
parent | 27a06fb2762c033c9a14370631a3ecfc13312f30 (diff) | |
download | aclog-4df2fbe73be728b23990bc0cea461dc564dc8e9c.tar.gz |
worker_node: don't use Oj's { mode: :object }
Diffstat (limited to 'app')
-rw-r--r-- | app/models/tweet.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/tweet.rb b/app/models/tweet.rb index c690158..89f5f15 100644 --- a/app/models/tweet.rb +++ b/app/models/tweet.rb @@ -224,9 +224,11 @@ class Tweet < ActiveRecord::Base last_index end end - result << text[last_index..-1] - result + result << text[last_index..-1] + rescue => e + Rails.logger.error(e) + json[:text] end def snowflake_min(time) |