Sha256: d1602968552201b6b9809e9dca7abe048b6c3b9b6559cf924339924295aedc4d
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
module Para module AttributeField class FileField < AttributeField::Base include ActionView::Helpers::UrlHelper 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
para-0.4.0 | lib/para/attribute_field/file.rb |