Sha256: 3e1be61e0e48fa033559749d81c8402f163bab61434fe0d1ead275d6345a6a17
Contents?: true
Size: 771 Bytes
Versions: 2
Compression:
Stored size: 771 Bytes
Contents
<% parent_record = @record associated = column.singular_association? ? [parent_record.send(column.name)].compact : parent_record.send(column.name).to_a associated = associated.sort_by {|r| r.new_record? ? 99999999999 : r.id} unless column.association.options.has_key?(:order) if column.show_blank_record? associated associated << column.association.klass.new locked = associated.last end -%> <h5><%= column.label -%> (<%= link_to_visibility_toggle(:default_visible => !column.collapsed) -%>)</h5> <div <%= 'style="display: none;"' if column.collapsed -%>> <%= render :partial => subform_partial_for_column(column), :locals => {:column => column, :parent_record => parent_record, :associated => associated, :locked => locked} %> </div> <% @record = parent_record -%>
Version data entries
2 entries across 2 versions & 1 rubygems