fix tabs_available signature for ruby 3.x
refs AE-92 Change-Id: I250d4f714148911c1614c57dd983d87144fac48c Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/307291 Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> Reviewed-by: Jacob Burroughs <jburroughs@instructure.com> QA-Review: Aaron Ogata <aogata@instructure.com> Product-Review: Aaron Ogata <aogata@instructure.com>
This commit is contained in:
parent
f327f40b71
commit
447df29252
|
@ -735,7 +735,7 @@ class Group < ActiveRecord::Base
|
|||
TAB_HOME, TAB_PAGES, TAB_PEOPLE, TAB_DISCUSSIONS, TAB_FILES,
|
||||
TAB_CONFERENCES, TAB_ANNOUNCEMENTS, TAB_PROFILE, TAB_SETTINGS, TAB_COLLABORATIONS,
|
||||
TAB_COLLABORATIONS_NEW = *1..20
|
||||
def tabs_available(user = nil, **)
|
||||
def tabs_available(user = nil, *)
|
||||
available_tabs = [
|
||||
{ id: TAB_HOME, label: t("#group.tabs.home", "Home"), css_class: "home", href: :group_path },
|
||||
{ id: TAB_ANNOUNCEMENTS, label: t("#tabs.announcements", "Announcements"), css_class: "announcements", href: :group_announcements_path },
|
||||
|
|
Loading…
Reference in New Issue