anthonymidili/Bullhorn

View on GitHub
app/views/infinate_scroll/_load_more.html.haml

Summary

Maintainability
Test Coverage
- if @next_page
  = turbo_frame_tag "load_more", 
  src: infinate_scroll_index_path(from_controller: @from_controller, 
  from_action: @from_action, page: @next_page, id: @id, 
  format: :turbo_stream), loading: :lazy
- else
  = turbo_stream.remove "load_more"