Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Clean up unneeded options

Klaus Zandersbe80aaa7c18e
diff --git a/modules/meeting/app/cells/meetings/table_cell.rb b/modules/meeting/app/cells/meetings/table_cell.rb
index 456d85d707a..751d6230e90 100644
--- a/modules/meeting/app/cells/meetings/table_cell.rb
+++ b/modules/meeting/app/cells/meetings/table_cell.rb
@@ -1,7 +1,5 @@
module Meetings
class TableCell < ::TableCell
- options :params # We read collapsed state from params
- options :current_user # adds this option to those of the base class
options :current_project # used to determine if displaying the projects column
sortable_columns :title, :start_time, :duration, :location
diff --git a/modules/meeting/app/views/meetings/index.html.erb b/modules/meeting/app/views/meetings/index.html.erb
index b5017d5f611..563079fecaf 100644
--- a/modules/meeting/app/views/meetings/index.html.erb
+++ b/modules/meeting/app/views/meetings/index.html.erb
@@ -47,9 +47,5 @@ See COPYRIGHT and LICENSE files for more details.
<% if @meetings.empty? -%>
<%= no_results_box %>
<% else -%>
-<%= rails_cell Meetings::TableCell,
- @meetings,
- current_user: current_user,
- current_project: @project,
- params: params %>
+<%= rails_cell Meetings::TableCell, @meetings, current_project: @project %>
<% end -%>