Sha256: 96c81429be59529c113a80ce626a2a43da4d5a5bbb9f448314bc9c279f40c1bf

Contents?: true

Size: 362 Bytes

Versions: 22

Compression:

Stored size: 362 Bytes

Contents

module Brightcontent
  module ViewLookup
    class FormField < Base
      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

22 entries across 22 versions & 1 rubygems

Version Path
brightcontent-core-2.6.0 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.5.1 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.5.0 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.6 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.5 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.4 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.3 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.2 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.1 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.4.0 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.3.4 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.3.3 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.3.2 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.3.1 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.3.0 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.2.2 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.2.1 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.2.0 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.1.5 lib/brightcontent/view_lookup/form_field.rb
brightcontent-core-2.1.4 lib/brightcontent/view_lookup/form_field.rb