Sha256: 0be63b584782bbdaf84f4ee827c4027960b25e8aa073b5dc3ee05e57f5082bb4
Contents?: true
Size: 440 Bytes
Versions: 6
Compression:
Stored size: 440 Bytes
Contents
module Para module AttributeField class FileField < AttributeField::Base include ActionView::Helpers::UrlHelper register :file, self field_option :wrapper, :wrapper_name def value_for(instance) if instance.send(:"#{ name }?") url = instance.send(name).url link_to(url, url) end end def wrapper_name :horizontal_file_input end end end end
Version data entries
6 entries across 6 versions & 1 rubygems