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.4.3 lib/avo/fields/markdown_field.rb
avo-3.4.2 lib/avo/fields/markdown_field.rb
avo-2.48.0 lib/avo/fields/markdown_field.rb
avo-3.4.1 lib/avo/fields/markdown_field.rb
avo-3.4.0 lib/avo/fields/markdown_field.rb
avo-3.3.6 lib/avo/fields/markdown_field.rb
avo-3.3.5 lib/avo/fields/markdown_field.rb
avo-3.3.4 lib/avo/fields/markdown_field.rb
avo-3.3.3 lib/avo/fields/markdown_field.rb
avo-3.3.2 lib/avo/fields/markdown_field.rb
avo-3.3.1 lib/avo/fields/markdown_field.rb
avo-2.47.0 lib/avo/fields/markdown_field.rb
avo-3.3.0 lib/avo/fields/markdown_field.rb
avo-3.2.3 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta23 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta20 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta21 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta17 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta22 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta18 lib/avo/fields/markdown_field.rb