class Decidim::EnhancedTextwork::ParagraphsType
Public Instance Methods
paragraph(id:)
click to toggle source
# File lib/decidim/api/paragraphs_type.rb, line 38 def paragraph(id:) Decidim::EnhancedTextwork::ParagraphFinderHelper.new(model_class: Paragraph).call(object, { id: id }, context) end
paragraphs(filter: {}, order: {})
click to toggle source
# File lib/decidim/api/paragraphs_type.rb, line 34 def paragraphs(filter: {}, order: {}) Decidim::EnhancedTextwork::ParagraphListHelper.new(model_class: Paragraph).call(object, { filter: filter, order: order }, context) end