Skip to content

Commit

Permalink
Use reorder for ics output
Browse files Browse the repository at this point in the history
  • Loading branch information
crespire committed Oct 12, 2024
1 parent dd898fb commit c0cc5db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/events_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def all

respond_to do |format|
format.html { render :index }
format.ics { render plain: Calendar.new(@events.order(start_at: :asc)).to_ical }
format.ics { render plain: Calendar.new(@events.reorder(start_at: :asc)).to_ical }
end
end

Expand Down

0 comments on commit c0cc5db

Please sign in to comment.