Sha256: ebed66e148435c318c139ac72f7f3b16e51ec8d5cb18136c536545561915a529

Contents?: true

Size: 563 Bytes

Versions: 7

Compression:

Stored size: 563 Bytes

Contents

module Udongo
  module Configs
    class FlexibleContent
      include Virtus.model

      BREAKPOINTS = %w(xs sm md lg xl)
      DEFAULT_BREAKPOINT = 'md'

      attribute :types, Array, default: %w(text picture video slideshow form image)
      attribute :picture_caption_editor, Axiom::Types::Boolean, default: false
      attribute :video_caption_editor, Axiom::Types::Boolean, default: false

      def picture_caption_editor?
        picture_caption_editor
      end

      def video_caption_editor?
        video_caption_editor
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
udongo-6.6.3 lib/udongo/configs/flexible_content.rb
udongo-6.6.2 lib/udongo/configs/flexible_content.rb
udongo-6.6.1 lib/udongo/configs/flexible_content.rb
udongo-6.6.0 lib/udongo/configs/flexible_content.rb
udongo-6.5.2 lib/udongo/configs/flexible_content.rb
udongo-6.5.1 lib/udongo/configs/flexible_content.rb
udongo-6.5.0 lib/udongo/configs/flexible_content.rb