rosa-abf/rosa-build

View on GitHub
app/controllers/groups/base_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Groups::BaseController < ApplicationController
before_action :authenticate_user!
before_action :find_group
 
protected
 
# Private: before_action hook which loads Group.
def find_group
if group_id = params[:uname] || params[:group_id] || params[:id]
@group = Group.find_by_insensitive_uname! group_id
end
end
end