clarion/app/inputs/color_input.rb

7 lines
238 B
Ruby
Raw Permalink Normal View History

2014-10-14 18:27:28 +03:00
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