14 lines
319 B
Ruby
14 lines
319 B
Ruby
# -*- encoding : utf-8 -*-
|
|
class Groups::BaseController < ApplicationController
|
|
before_filter :authenticate_user!
|
|
before_filter :find_group
|
|
|
|
protected
|
|
|
|
def find_group
|
|
if group_id = params[:uname] || params[:group_id] || params[:id]
|
|
@group = Group.find_by_insensitive_uname! group_id
|
|
end
|
|
end
|
|
end
|