Sha256: ef5324b8f29de322b71f552e427c2ec00a9895a5b27bda2fcf98ee49cdeb3a85

Contents?: true

Size: 285 Bytes

Versions: 131

Compression:

Stored size: 285 Bytes

Contents

module Avo
  module Fields
    class PreviewField < BaseField
      def table_header_label
        # If the user gives us a name, use that, if not, leave it blank
        if @args[:name].present?
          @args[:name]
        else
          ""
        end
      end
    end
  end
end

Version data entries

131 entries across 131 versions & 1 rubygems

Version Path
avo-3.1.3 lib/avo/fields/preview_field.rb
avo-3.1.2 lib/avo/fields/preview_field.rb
avo-3.1.1 lib/avo/fields/preview_field.rb
avo-3.1.0 lib/avo/fields/preview_field.rb
avo-3.0.8 lib/avo/fields/preview_field.rb
avo-3.0.7 lib/avo/fields/preview_field.rb
avo-3.0.6 lib/avo/fields/preview_field.rb
avo-3.0.5 lib/avo/fields/preview_field.rb
avo-3.0.4 lib/avo/fields/preview_field.rb
avo-3.0.3 lib/avo/fields/preview_field.rb
avo-3.0.2 lib/avo/fields/preview_field.rb