Sha256: d5eddbc61927e90e0b11afb0828354acf4a4c205c39d373817aee9ba4c5d3b42
Contents?: true
Size: 340 Bytes
Versions: 2
Compression:
Stored size: 340 Bytes
Contents
class <%= @p_class_name %>TableSection < Prime::TableSection def table_data <%= @s_class_name %>.all.map do |model| <%= @p_class_name %>CellSection.new(model: model) end end def on_click(table, index) section = data[index.row] screen.open_screen '<%= @p_name %>#show', params: { model: section.model } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.9.1 | generators/templates/scaffold/table.rb |
motion-prime-0.9.0 | generators/templates/scaffold/table.rb |