Sha256: 19023957017bb53b9b917cf1404ed8f6a212b8efec3ec08a35c045879a7811fb
Contents?: true
Size: 924 Bytes
Versions: 6
Compression:
Stored size: 924 Bytes
Contents
# frozen_string_literal: true # generado con pg_rails module Admin class UsersController < AdminController before_action { @clase_modelo = User } before_action(only: :index) { authorize User } before_action only: %i[update] do params[:user].delete(:password) if params[:user][:password].blank? end before_action :set_instancia_modelo, only: %i[new create show edit update destroy] add_breadcrumb User.nombre_plural, :admin_users_path def create @user.skip_confirmation! pg_respond_create end def update @user.skip_reconfirmation! pg_respond_update end private def atributos_permitidos %i[email password developer] end def atributos_para_buscar %i[email developer] end def atributos_para_listar %i[email developer] end def atributos_para_mostrar %i[email developer] end end end
Version data entries
6 entries across 6 versions & 1 rubygems