Class: MinicolorsInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
app/inputs/minicolors_input.rb

Instance Method Summary collapse

Instance Method Details

#input_html_optionsObject



3
4
5
6
7
8
# File 'app/inputs/minicolors_input.rb', line 3

def input_html_options
  super.tap do |options|
    options[:data] ||= {}
    options[:data][:minicolors] ||= {}
  end
end

#input_typeObject



10
# File 'app/inputs/minicolors_input.rb', line 10

def input_type; :string end