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.0.1.beta19 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta24 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta15 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta16 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta14 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta12 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta13 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta10 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta11 lib/avo/fields/markdown_field.rb
avo-3.0.0.pre19 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta8 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta9 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta6 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta7 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta5 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta2 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta4 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta3 lib/avo/fields/markdown_field.rb
avo-3.0.0.beta1 lib/avo/fields/markdown_field.rb
avo-3.0.1.beta1 lib/avo/fields/markdown_field.rb