Sha256: cae70027dab7d2d59966998bb1d70da9f78725a47fcfdc665a19277cbc06e4d6
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
module Refinery module AdminLocales module Admin class AdminLocalesController < ::Refinery::AdminController crudify :'refinery/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 refinery.admin_locales_admin_admin_locales_path, :notice => t('updated', :what => @user.username, :scope => 'refinery.crudify') else render :edit end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems