Sha256: 231325b297883de49d938f4f57fdf9d6504454cfacf96ea66858aee1d0306e66

Contents?: true

Size: 809 Bytes

Versions: 330

Compression:

Stored size: 809 Bytes

Contents

module Avo
  module Fields
    class TrixField < BaseField
      attr_reader :always_show
      attr_reader :attachments_disabled
      attr_reader :attachment_key
      attr_reader :hide_attachment_filename
      attr_reader :hide_attachment_filesize
      attr_reader :hide_attachment_url

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

        hide_on :index

        @always_show = args[:always_show] || false
        @attachments_disabled = args[:attachments_disabled] || false
        @attachment_key = args[:attachment_key]
        @hide_attachment_filename = args[:hide_attachment_filename] || false
        @hide_attachment_filesize = args[:hide_attachment_filesize] || false
        @hide_attachment_url = args[:hide_attachment_url] || false
      end
    end
  end
end

Version data entries

330 entries across 330 versions & 1 rubygems

Version Path
avo-2.53.0 lib/avo/fields/trix_field.rb
avo-2.52.0 lib/avo/fields/trix_field.rb
avo-2.49.0 lib/avo/fields/trix_field.rb
avo-2.48.0 lib/avo/fields/trix_field.rb
avo-3.3.2 lib/avo/fields/trix_field.rb
avo-3.3.1 lib/avo/fields/trix_field.rb
avo-2.47.0 lib/avo/fields/trix_field.rb
avo-3.3.0 lib/avo/fields/trix_field.rb
avo-3.2.3 lib/avo/fields/trix_field.rb
avo-3.0.1.beta23 lib/avo/fields/trix_field.rb
avo-3.0.1.beta20 lib/avo/fields/trix_field.rb
avo-3.0.1.beta21 lib/avo/fields/trix_field.rb
avo-3.0.1.beta17 lib/avo/fields/trix_field.rb
avo-3.0.1.beta22 lib/avo/fields/trix_field.rb
avo-3.0.1.beta18 lib/avo/fields/trix_field.rb
avo-3.0.1.beta19 lib/avo/fields/trix_field.rb
avo-3.0.1.beta24 lib/avo/fields/trix_field.rb
avo-3.0.1.beta15 lib/avo/fields/trix_field.rb
avo-3.0.1.beta16 lib/avo/fields/trix_field.rb
avo-3.0.1.beta14 lib/avo/fields/trix_field.rb