Project

General

Profile

Download (265 Bytes) Statistics
| Branch: | Tag: | Revision:
a579432b Marc Dequènes (Duck)
class Admin::UsersController < Admin::AdminController
simple_rest_support

before_filter :admin_required
73f2fc18 Marc Dequènes (Duck)
after_filter :set_language, :only => [:update]

def set_language
@config.switch_locale(@user.prefered_language) if @user == @current_user
end
a579432b Marc Dequènes (Duck)
end