Sha256: 79dccf42463f53b5c5798606459bbae10de6f907e7700eedb1c54314244c52be
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 Bytes
Contents
class TasksIndexTableSection < Prime::TableSection def table_data Task.all.map do |model| TasksIndexCellSection.new(model: model) end end def on_click(table, index) section = data[index.row] screen.open_screen 'tasks#show', params: { model: section.model } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.9.8 | spec/factories/scaffold/sections/tasks/index_table.rb |
motion-prime-0.9.7 | spec/factories/scaffold/sections/tasks/index_table.rb |