mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-21 23:33:14 +01:00
truncate direct method
This commit is contained in:
parent
14688ad7e1
commit
2a39a2d454
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class Paper < ActiveRecord::Base
|
|||
def import_from_json(json_string)
|
||||
old_count = count
|
||||
JSON.parse(json_string).each do |record|
|
||||
content = truncate(record['content'], 99998)
|
||||
content = record['content'].truncate(99998)
|
||||
attributes = {
|
||||
body: record['body'],
|
||||
content: content,
|
||||
|
|
Loading…
Reference in a new issue