Sha256: f198ad03a8894a186bde770ea9bfc8bb3c17bcd04700a9a70725d7ba47800074
Contents?: true
Size: 494 Bytes
Versions: 52
Compression:
Stored size: 494 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 excerptable_value? false end def wrapper_name :horizontal_file_input end end end end
Version data entries
52 entries across 52 versions & 1 rubygems