module NippoCore class ApplicationController < ActionController::Base protect_from_forgery with: :exception before_action :authenticate_user! private def find_group @group = NippoCore::Group.find(params[:group_id] || params[:id]) end end end