mirror of
https://github.com/CodeforLeipzig/stadtratmonitor.git
synced 2024-12-22 07:43:13 +01:00
truncate content with record
This commit is contained in:
parent
b733dedfab
commit
14688ad7e1
1 changed files with 1 additions and 1 deletions
|
@ -79,8 +79,8 @@ class Paper < ActiveRecord::Base
|
|||
class << self
|
||||
def import_from_json(json_string)
|
||||
old_count = count
|
||||
content = truncate(record['content'], 99998)
|
||||
JSON.parse(json_string).each do |record|
|
||||
content = truncate(record['content'], 99998)
|
||||
attributes = {
|
||||
body: record['body'],
|
||||
content: content,
|
||||
|
|
Loading…
Reference in a new issue