Sha256: c720eaf8a3aae4096791bd560f42cfff3d29130c7be3215c3359029624edc50c

Contents?: true

Size: 591 Bytes

Versions: 418

Compression:

Stored size: 591 Bytes

Contents

module Avo
  module Fields
    class MarkdownField < BaseField
      attr_reader :options

      def initialize(id, **args, &block)
        super(id, **args, &block)

        hide_on :index

        @always_show = args[:always_show].present? ? args[:always_show] : false
        @height = args[:height].present? ? args[:height].to_s : "auto"
        @spell_checker = args[:spell_checker].present? ? args[:spell_checker] : false
        @options = {
          spell_checker: @spell_checker,
          always_show: @always_show,
          height: @height
        }
      end
    end
  end
end

Version data entries

418 entries across 418 versions & 1 rubygems

Version Path
avo-3.14.3 lib/avo/fields/markdown_field.rb
avo-3.14.2 lib/avo/fields/markdown_field.rb
avo-3.14.1 lib/avo/fields/markdown_field.rb
avo-3.14.0 lib/avo/fields/markdown_field.rb
avo-3.13.7 lib/avo/fields/markdown_field.rb
avo-3.13.6 lib/avo/fields/markdown_field.rb
avo-3.13.5 lib/avo/fields/markdown_field.rb
avo-3.13.4 lib/avo/fields/markdown_field.rb
avo-3.13.3 lib/avo/fields/markdown_field.rb
avo-3.13.2 lib/avo/fields/markdown_field.rb
avo-3.13.1 lib/avo/fields/markdown_field.rb
avo-3.13.0 lib/avo/fields/markdown_field.rb
avo-2.53.0 lib/avo/fields/markdown_field.rb
avo-3.12.0 lib/avo/fields/markdown_field.rb
avo-3.11.10 lib/avo/fields/markdown_field.rb
avo-3.11.9 lib/avo/fields/markdown_field.rb
avo-3.11.8 lib/avo/fields/markdown_field.rb
avo-3.11.7 lib/avo/fields/markdown_field.rb
avo-3.11.6 lib/avo/fields/markdown_field.rb
avo-3.11.5 lib/avo/fields/markdown_field.rb