Sha256: e2399efa2131c30b973c736a3d6d42d815716afcaa62b27a88c8bf244f6fa02c
Contents?: true
Size: 754 Bytes
Versions: 19
Compression:
Stored size: 754 Bytes
Contents
# frozen_string_literal: true # generado con pg_rails module Admin class UserAccountsController < AdminController include PgEngine::Resource self.clase_modelo = UserAccount self.nested_class = Account self.nested_key = :account_id before_action(only: :index) { authorize UserAccount } before_action :set_instancia_modelo, only: %i[new create show edit update destroy] private def atributos_permitidos [ :user_id, :account_id, { profiles: [] } ] end def atributos_para_buscar %i[user account profiles] end def atributos_para_listar %i[user account profiles] end def atributos_para_mostrar %i[user account profiles] end end end
Version data entries
19 entries across 19 versions & 1 rubygems