2012-05-02 10:18:07 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
|
|
|
class Groups::BaseController < ApplicationController
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :find_group
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def find_group
|
2012-05-03 22:52:56 +01:00
|
|
|
if group_id = params[:uname] || params[:group_id] || params[:id]
|
2012-05-03 15:08:02 +01:00
|
|
|
@group = Group.find_by_insensitive_uname! group_id
|
2012-05-02 10:18:07 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|