diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-05-05 03:06:01 +0300 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-05-05 22:12:50 +0300 |
commit | f05469f99b8c52c4dab7ac9160b47676c87124f9 (patch) | |
tree | 89d39b3c7672d89fd05346c2ea930ae039a95c4a /app/controllers/groups | |
parent | 9e48f02ea802814e4df1f1de5ed509942dca7581 (diff) |
Resolve discussions
Diffstat (limited to 'app/controllers/groups')
-rw-r--r-- | app/controllers/groups/application_controller.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/groups/application_controller.rb b/app/controllers/groups/application_controller.rb index 2157a56dea2..afffb813b44 100644 --- a/app/controllers/groups/application_controller.rb +++ b/app/controllers/groups/application_controller.rb @@ -9,11 +9,7 @@ class Groups::ApplicationController < ApplicationController private def group - @group ||= find_routable!(Group, requested_full_path) - end - - def requested_full_path - params[:group_id] || params[:id] + @group ||= find_routable!(Group, params[:group_id] || params[:id]) end def group_projects |