Sha256: b008503832499dacce7db524488b2549427d7637abfbc9452a52aa0580320f26
Contents?: true
Size: 746 Bytes
Versions: 16
Compression:
Stored size: 746 Bytes
Contents
= tabs do = tab '<%= resource.human_name.titleize %>' do = render '<%= resource.view_file_path("form_#{resource.name}") %>', <%= resource.name %>: <%= resource.name %> <%- if resource.nested_resources.present? || resource.instance.respond_to?(:log_changes_datatable) %> - if <%= resource.name %>.persisted? <%- resource.nested_resources.each do |nested_resource| -%> = tab '<%= nested_resource.plural_name.titleize %>' do = render_datatable(<%= nested_resource.klass.name %>Datatable.new(<%= resource.name %>_id: <%= resource.name %>.id)) <%- end -%> <%- if resource.instance.respond_to?(:log_changes_datatable) -%> = tab 'Logs' do = render_datatable(<%= resource.name %>.log_changes_datatable) <% end -%> <% end -%>
Version data entries
16 entries across 16 versions & 1 rubygems