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

Version Path
pg_rails-7.6.17 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.16 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.15 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.14 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.13 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.12 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.11 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.10 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.9 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.8 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.7 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.6 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.5 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.4 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.3 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.2 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.1 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.0 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.5.7 pg_engine/app/controllers/admin/user_accounts_controller.rb