clarion/app/inputs/color_input.rb
2014-10-15 13:32:58 +03:00

7 lines
238 B
Ruby

class ColorInput < SimpleForm::Inputs::Base
def input(wrapper_options = nil)
merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
@builder.color_field(attribute_name, merged_input_options)
end
end