Sha256: 645a7e2f52f3de5d3faaa924556d039b93918e4faf1f3b93cfeafa82f99ce680

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

module Avo
  module Fields
    class TextareaField < TextField
      def initialize(name, **args, &block)
        @defaults = {
          partial_name: 'textarea-field',
          computable: true,
        }

        super(name, **args, &block)

        hide_on :index

        @meta[:rows] = args[:rows].present? ? args[:rows].to_i : 5
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
avo-0.5.0.beta9 lib/avo/fields/textarea_field.rb
avo-0.5.0.beta8 lib/avo/fields/textarea_field.rb
avo-0.5.0.beta7 lib/avo/fields/textarea_field.rb
avo-0.5.0.beta6 lib/avo/fields/textarea_field.rb
avo-0.5.0.beta5 lib/avo/fields/textarea_field.rb