Class: PriceInput

Inherits:
Formtastic::Inputs::NumberInput
  • Object
show all
Defined in:
app/models/inputs/price_input.rb,
app/models/inputs/price_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



6
7
8
9
# File 'app/models/inputs/price_input.rb', line 6

def input(wrapper_options = nil)
  options = merge_wrapper_options(input_html_options, wrapper_options)
  Inputs::PriceField.new(object, object_name, template, attribute_name, options).to_html
end

#to_htmlObject



13
14
15
16
17
# File 'app/models/inputs/price_input.rb', line 13

def to_html
  input_wrapping do
    label_html << Inputs::PriceField.new(@object, @object_name, @template, @method, @options).to_html
  end
end