prismicio-community/ruby-kit

as_text for Embed objects throws not implemented error

Closed this issue · 2 comments

spnkr commented

should return nil or a string or the alt attribute or something. annoying that it errors out.

e.g.

module Prismic
  module Fragments
    class Embed < Fragment
      def as_text
        ""
      end
   end
  end
end

I completely agree!

fixed in v1.8.1