Sha256: e18f6457638b65bb71d6d8f83a2c36dc632d0b53d3005d21278b03b95f141231

Contents?: true

Size: 361 Bytes

Versions: 13

Compression:

Stored size: 361 Bytes

Contents

module Udongo
  module Configs
    class FlexibleContent
      include Virtus.model

      BREAKPOINTS = %w(xs sm md lg xl)

      attribute :types, Array, default: %w(text image)
      attribute :allowed_breakpoints, Array, default: BREAKPOINTS

      def allowed_breakpoint?(value)
        allowed_breakpoints.include?(value.to_s)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
udongo-5.7.0 lib/udongo/configs/flexible_content.rb
udongo-5.6.0 lib/udongo/configs/flexible_content.rb
udongo-5.5.0 lib/udongo/configs/flexible_content.rb
udongo-5.4.0 lib/udongo/configs/flexible_content.rb
udongo-5.3.1 lib/udongo/configs/flexible_content.rb
udongo-5.3.0 lib/udongo/configs/flexible_content.rb
udongo-5.2.0 lib/udongo/configs/flexible_content.rb
udongo-5.1.0 lib/udongo/configs/flexible_content.rb
udongo-5.0.2 lib/udongo/configs/flexible_content.rb
udongo-5.0.1 lib/udongo/configs/flexible_content.rb
udongo-5.0.0 lib/udongo/configs/flexible_content.rb
udongo-4.0.0 lib/udongo/configs/flexible_content.rb
udongo-3.0.0 lib/udongo/configs/flexible_content.rb