Sha256: 8ae10a8196694e4f846004d92145bb1b357a544e43d4a368a08abf1f80645936

Contents?: true

Size: 485 Bytes

Versions: 44

Compression:

Stored size: 485 Bytes

Contents

<% csv = CSV.generate(:col_sep => ";", :row_sep => "\r\n") do |row| %>
  <% row << resource_handler.attributes.collect { |a| resource_handler.model.human_attribute_name(a[:name]) } %>
  <% resources_instance_variable.each do |resource| %>
    <% row << resource_handler.attributes.map { |a|
      if a[:type] == :boolean
        resource.send(a[:name]) ? 'x' : ''
      else
        render_attribute(resource, a).to_s.strip
      end
    } %>
  <% end %>
<% end %>
<%= csv.html_safe %>

Version data entries

44 entries across 44 versions & 2 rubygems

Version Path
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.0.rc8 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.9.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.8.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.5 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.6.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.0.rc7 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.0.rc6 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.4 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.8.2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.8.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.3 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-3.0.0.rc5 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.2 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.1 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.7.0 app/views/alchemy/admin/resources/index.csv.erb
alchemy_cms-2.6.2.1 app/views/alchemy/admin/resources/index.csv.erb