Class: FormtasticUploaderInput
- Inherits:
-
Object
- Object
- FormtasticUploaderInput
- Includes:
- Formtastic::Inputs::Base
- Defined in:
- lib/uploader/hooks/formtastic.rb
Instance Method Summary collapse
Instance Method Details
#input_html_options ⇒ Object
13 14 15 16 17 18 |
# File 'lib/uploader/hooks/formtastic.rb', line 13 def data = super data[:confirm_delete] = [:confirm_delete] data[:confirm_message] = localized_string(method, method, :delete_confirmation) || I18n.t('uploader.confirm_delete') data end |
#to_html ⇒ Object
6 7 8 9 10 11 |
# File 'lib/uploader/hooks/formtastic.rb', line 6 def to_html input_wrapping do label_html << builder.uploader_field(method, ) end end |