Module: Uchi::Pagy::Console

Includes:
Method
Defined in:
lib/uchi/pagy/modules/console.rb

Overview

Provide a ready to use pagy environment when included in irb/rails console

Defined Under Namespace

Classes: Collection, Request

Instance Method Summary collapse

Instance Method Details

#collectionObject



37
# File 'lib/uchi/pagy/modules/console.rb', line 37

def collection = Collection

#paramsObject

Direct reference to request.params via a method



35
# File 'lib/uchi/pagy/modules/console.rb', line 35

def params     = request.params

#requestObject



36
# File 'lib/uchi/pagy/modules/console.rb', line 36

def request    = @request ||= Request.new