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.0.1.beta12 lib/avo/fields/id_field.rb
avo-3.0.1.beta13 lib/avo/fields/id_field.rb
avo-3.0.1.beta10 lib/avo/fields/id_field.rb
avo-3.0.1.beta11 lib/avo/fields/id_field.rb
avo-3.0.0.pre19 lib/avo/fields/id_field.rb
avo-3.0.1.beta9 lib/avo/fields/id_field.rb
avo-3.2.2 lib/avo/fields/id_field.rb
avo-3.2.1 lib/avo/fields/id_field.rb
avo-3.2.0 lib/avo/fields/id_field.rb
avo-3.1.7 lib/avo/fields/id_field.rb
avo-3.1.6 lib/avo/fields/id_field.rb
avo-3.1.5 lib/avo/fields/id_field.rb
avo-3.1.4 lib/avo/fields/id_field.rb
avo-3.1.3 lib/avo/fields/id_field.rb
avo-3.1.2 lib/avo/fields/id_field.rb
avo-3.1.1 lib/avo/fields/id_field.rb
avo-3.1.0 lib/avo/fields/id_field.rb
avo-3.0.8 lib/avo/fields/id_field.rb
avo-3.0.7 lib/avo/fields/id_field.rb
avo-3.0.6 lib/avo/fields/id_field.rb