Class: AssetBoxInput

Inherits:
Object
  • Object
show all
Defined in:
lib/inputs/asset_box_input.rb,
lib/inputs/asset_box_input.rb,
lib/inputs/asset_box_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



6
7
8
# File 'lib/inputs/asset_box_input.rb', line 6

def input(wrapper_options = nil)
  AssetBox.new(object, object_name, template, attribute_name, options).to_html
end

#to_htmlObject



12
13
14
15
16
# File 'lib/inputs/asset_box_input.rb', line 12

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