table-for 3.5.0 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/CHANGELOG.rdoc +3 -0
 - data/app/views/table_for/_table_for.html.erb +9 -6
 - data/lib/table_for/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: fce5617d62755ddab8e61726c5f7eef02538bac2
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 588eead2c7aea2c34fd06fc37f9c689b8e8d330c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 301a073938275f7369266fab2147b313671003e4c748ae4d9062ddd764abaee6e9e29cc8e94a860f800ce543aa4a512e9181198253764263f45e4e42a9d7d0c5
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2262926933d7dcab1c4c330996fcad9446e7afcdfae25750200b0777a671c94ff5e1536adf9e168d3d6c9f7d74b21d211b78e7e8a879ce2267fb74f4e087633c
         
     | 
    
        data/CHANGELOG.rdoc
    CHANGED
    
    
| 
         @@ -43,15 +43,18 @@ 
     | 
|
| 
       43 
43 
     | 
    
         
             
            <% end %>
         
     | 
| 
       44 
44 
     | 
    
         | 
| 
       45 
45 
     | 
    
         
             
            <% table.define :data_column do |column, record, options| %>
         
     | 
| 
       46 
     | 
    
         
            -
              <%= content_tag :td, 
     | 
| 
       47 
     | 
    
         
            -
             
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
      
 46 
     | 
    
         
            +
              <%= content_tag :td,
         
     | 
| 
      
 47 
     | 
    
         
            +
                    table.call_each_hash_value_with_params(options[:data_column_html],
         
     | 
| 
      
 48 
     | 
    
         
            +
                                                           record,
         
     | 
| 
      
 49 
     | 
    
         
            +
                                                           column) do
         
     | 
| 
      
 50 
     | 
    
         
            +
                  table.render(column.name, record, column, column.options)
         
     | 
| 
      
 51 
     | 
    
         
            +
                end %>
         
     | 
| 
       49 
52 
     | 
    
         
             
            <% end %>
         
     | 
| 
       50 
53 
     | 
    
         | 
| 
       51 
54 
     | 
    
         
             
            <%# Define a block for each column, named using that column's name %>
         
     | 
| 
       52 
     | 
    
         
            -
            <% table.define lambda {|column| column.name }, :collection => table.columns, :link_html => {} do |record, column, options|  
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
            <% end  
     | 
| 
      
 55 
     | 
    
         
            +
            <% table.define lambda {|column| column.name }, :collection => table.columns, :link_html => {} do |record, column, options| -%>
         
     | 
| 
      
 56 
     | 
    
         
            +
            <%= table.cell_content(record, column, options) -%>
         
     | 
| 
      
 57 
     | 
    
         
            +
            <% end -%>
         
     | 
| 
       55 
58 
     | 
    
         | 
| 
       56 
59 
     | 
    
         
             
            <% table.define :footer do |options| %>
         
     | 
| 
       57 
60 
     | 
    
         
             
              <%= table.content_tag_with_block options[:tfoot_tag], options[:tfoot_html] do %>
         
     | 
    
        data/lib/table_for/version.rb
    CHANGED