Sha256: 8e679ec3e11c003bbc395425af6616f5b6889e1bedc5d67ce205cf43629d8426

Contents?: true

Size: 607 Bytes

Versions: 3

Compression:

Stored size: 607 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

    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

3 entries across 3 versions & 1 rubygems

Version Path
pg_rails-7.6.20 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.19 pg_engine/app/controllers/admin/user_accounts_controller.rb
pg_rails-7.6.18 pg_engine/app/controllers/admin/user_accounts_controller.rb