Sha256: b1495e73ed08cd80857987df22e807c22ae8a4536d5baaa91b42d8b828884b19

Contents?: true

Size: 343 Bytes

Versions: 8

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

module PUNK
  class ListTenantUsersAction < Action
    args :tenant

    def validate
      validates_not_null :tenant
      validates_not_empty :tenant
      return if tenant.blank?
      validates_type Tenant, :tenant
    end

    def process
      present ListUsersView, users: tenant.users
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
punk-0.4.1 lib/punk/actions/users/list_tenant.rb
punk-0.3.6 lib/punk/actions/users/list_tenant.rb
punk-0.3.5 lib/punk/actions/users/list_tenant.rb
punk-0.3.4 lib/punk/actions/users/list_tenant.rb
punk-0.3.3 lib/punk/actions/users/list_tenant.rb
punk-0.3.2 lib/punk/actions/users/list_tenant.rb
punk-0.3.1 lib/punk/actions/users/list_tenant.rb
punk-0.2.0 lib/punk/actions/users/list_tenant.rb