Sha256: 5cdfce587ba894100b9fab9ade0a381a97b424e624f3da2e614b6c8b51d6c54e
Contents?: true
Size: 754 Bytes
Versions: 6
Compression:
Stored size: 754 Bytes
Contents
= table.column :name = table.association :record do |resource| - capture_haml do - begin - engine_name = resource.record.class.name.deconstantize.underscore.gsub("/", "_") - engine_name = 'main_app' if engine_name.empty? - url = send(engine_name).polymorphic_path(resource.record) = link_to(url) do = administrador_helper(self).label_for(resource.record) - rescue NameError => e = "#{resource.record_type}##{resource.record_id}" = table.column :blob do |resource| - link_to(resource.blob.filename, [:active_storage, resource.blob]) = table.timestamp :created_at = table.column :additional_actions do |resource| - link_to(t('.download'), main_app.url_for(resource.blob), class: 'btn btn-primary btn-xs')
Version data entries
6 entries across 6 versions & 1 rubygems