seed_dump icon indicating copy to clipboard operation
seed_dump copied to clipboard

Not working with ActionText::RichText

Open mhenrixon opened this issue 3 years ago • 3 comments

These are the values generated from db:seed:dump. It seems like the ActionText::Content isn't dumped correctly.

ActionText::RichText.create!([
  {name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 1},
  {name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 1},
  {name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 2},
  {name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 2},
  {name: "description", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Announcement", record_id: 1},
  {name: "excerpt", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 3},
  {name: "content", body: #<ActionText::Content "<!-- BEGIN vendor/bund...">, record_type: "Article", record_id: 3}
])

mhenrixon avatar Apr 17 '21 13:04 mhenrixon

Same here. Rails 6.1.1 Ruby 3.0.0p0 seed_sump 3.3.1

ActionText::RichText.create!([ {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 377}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 254}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 255}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 256}, {name: "content", body: #<ActionText::Content "<div class=\"trix-conte...">, record_type: "Post", record_id: 257}, ...

pkemble avatar Apr 19 '21 12:04 pkemble

You can try this branch: https://github.com/Spone/seed_dump/tree/actiontext-support

Spone avatar Oct 25 '21 12:10 Spone