Sha256: a94e1e4c88445fdb8bfb9d2edc68f37dcaad6719564330c2787b2d9b6f0c4713

Contents?: true

Size: 293 Bytes

Versions: 10

Compression:

Stored size: 293 Bytes

Contents

class TasksIndexTableSection < Prime::TableSection
  def collection_data
    Task.all.map do |model|
      TasksIndexCellSection.new(model: model)
    end
  end

  def on_click(index)
    section = data[index.row]
    screen.open_screen 'tasks#show', params: { model: section.model }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
motion-prime-1.0.7 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.6 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.5 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.4 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.3 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.2 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.1 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-1.0.0 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-0.9.9.2 spec/factories/scaffold/sections/tasks/index_table.rb
motion-prime-0.9.9.1 spec/factories/scaffold/sections/tasks/index_table.rb