Sha256: 8f559d010e8fb4f041a65fbebdad96ecb9225ab05c4dc89005d20508c18d6948
Contents?: true
Size: 456 Bytes
Versions: 9
Compression:
Stored size: 456 Bytes
Contents
require 'formtastic' class FormtasticUploaderInput include ::Formtastic::Inputs::Base def to_html input_wrapping do label_html << builder.uploader_field(method, input_html_options) end end def input_html_options data = super data[:confirm_delete] = options[:confirm_delete] data[:confirm_message] = localized_string(method, method, :delete_confirmation) || I18n.t('uploader.confirm_delete') data end end
Version data entries
9 entries across 9 versions & 1 rubygems