Sha256: 459d5af22a1bddec1045f8b84cb52bec7932926916e1c33f5ef7def12c2fd2fc

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

module Brightcontent
  module ViewLookup
    class FormField < Abstract
      def render_default
        options[:form].input(options[:field].to_sym)
      end

      def field_type
        column = options[:form].send(:find_attribute_column, options[:field])
        options[:form].send(:default_input_type, options[:field], column, {})
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brightcontent-core-2.1.1 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.1.0 lib/brightcontent/view_lookup/form_field.rb