Sha256: 9d7fabb80ac7446169f7eef97e7e08be6029d8bdd922582f247dca885ea7d7a3
Contents?: true
Size: 538 Bytes
Versions: 2
Compression:
Stored size: 538 Bytes
Contents
module Admin class AdminLocalesController < Admin::BaseController crudify :user, :order => 'username ASC', :title_attribute => :username, :xhr_paging => true def update locale = params[:user][:locale] @user.locale = locale if params[:user][:locale] if locale && @user.save redirect_to admin_admin_locales_path, :notice => t('updated', :what => @user.username, :scope => 'refinery.crudify') else render :edit end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-admin-locales-1.0.1 | app/controllers/admin/admin_locales_controller.rb |
refinerycms-admin-locales-1.0.0 | app/controllers/admin/admin_locales_controller.rb |