2012-05-02 10:18:07 +01:00
|
|
|
# -*- encoding : utf-8 -*-
|
|
|
|
class Users::BaseController < ApplicationController
|
|
|
|
before_filter :authenticate_user!
|
|
|
|
before_filter :find_user
|
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def find_user
|
|
|
|
if user_id = params[:owner_name] || params[:user_id] || params[:id]
|
2012-05-03 15:08:02 +01:00
|
|
|
@user = User.find_by_insensitive_uname! user_id
|
2012-05-02 10:18:07 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|