Sha256: 00793ca158108d76c70474767a7c77c693c195bf6772fbfb61b360d1fe44826e

Contents?: true

Size: 322 Bytes

Versions: 7

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

module PUNK
  class ListUsersView < View
    args :users

    def validate
      validates_not_null :users
      validates_type Array, :users
    end

    def process
      'users/list'
    end

    protected

    def _dir
      File.join(__dir__, '..', '..', 'templates')
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
punk-0.3.6 lib/punk/views/users/list.rb
punk-0.3.5 lib/punk/views/users/list.rb
punk-0.3.4 lib/punk/views/users/list.rb
punk-0.3.3 lib/punk/views/users/list.rb
punk-0.3.2 lib/punk/views/users/list.rb
punk-0.3.1 lib/punk/views/users/list.rb
punk-0.2.0 lib/punk/views/users/list.rb