Class: ActionView::Helpers::AttributeBuilders::ColorField

Inherits:
TextField
  • Object
show all
Defined in:
lib/actionview_attribute_builders/attribute_builders/color_field.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from Base

#object

Instance Method Summary collapse

Methods inherited from TextField

field_type

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from ActionView::Helpers::AttributeBuilders::Base

Instance Method Details

#html_attributesObject



7
8
9
10
11
12
# File 'lib/actionview_attribute_builders/attribute_builders/color_field.rb', line 7

def html_attributes
  options = @options.stringify_keys
  options["value"] ||= validate_color_string(value)
  @options = options
  super
end