Sha256: cdf9938135cd026a6316cffc5376d033e6cb7ba857495b647f5f215a91d924dc

Contents?: true

Size: 389 Bytes

Versions: 104

Compression:

Stored size: 389 Bytes

Contents

module Avo
  module Fields
    class IdField < BaseField
      attr_reader :link_to_record

      def initialize(id, **args, &block)
        args[:readonly] = true

        hide_on :forms

        super(id, **args, &block)

        add_boolean_prop args, :sortable, true

        @link_to_record = args[:link_to_record].present? ? args[:link_to_record] : false
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
avo-3.11.3 lib/avo/fields/id_field.rb
avo-3.11.2 lib/avo/fields/id_field.rb
avo-3.11.1 lib/avo/fields/id_field.rb
avo-3.11.0 lib/avo/fields/id_field.rb
avo-3.10.10 lib/avo/fields/id_field.rb
avo-3.10.9 lib/avo/fields/id_field.rb
avo-3.10.8 lib/avo/fields/id_field.rb
avo-3.10.7 lib/avo/fields/id_field.rb
avo-3.10.6 lib/avo/fields/id_field.rb
avo-3.10.5 lib/avo/fields/id_field.rb
avo-3.10.4 lib/avo/fields/id_field.rb
avo-3.10.3 lib/avo/fields/id_field.rb
avo-3.10.2 lib/avo/fields/id_field.rb
avo-3.10.1 lib/avo/fields/id_field.rb
avo-3.10.0 lib/avo/fields/id_field.rb
avo-3.9.2 lib/avo/fields/id_field.rb
avo-3.9.1 lib/avo/fields/id_field.rb
avo-3.8.2 lib/avo/fields/id_field.rb
avo-3.9.0 lib/avo/fields/id_field.rb
avo-3.8.1 lib/avo/fields/id_field.rb