Module: Que::View

Extended by:
Forwardable, View
Included in:
View
Defined in:
lib/que/view.rb,
lib/que/view/dsl.rb,
lib/que/view/engine.rb,
lib/que/view/version.rb,
lib/que/view/pagination.rb,
lib/que/view/configuration.rb,
app/helpers/que/view/application_helper.rb,
app/controllers/que/view/jobs_controller.rb,
app/controllers/que/view/welcome_controller.rb,
app/controllers/que/view/application_controller.rb,
app/controllers/que/view/queue_metrics_controller.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: ApplicationController, Configuration, DSL, Engine, JobsController, Pagination, QueueMetricsController, WelcomeController

Constant Summary collapse

VERSION =
'0.4.1'

Instance Method Summary collapse

Instance Method Details

#configurationObject

Public: Returns Que::View::Configuration instance.



26
27
28
# File 'lib/que/view.rb', line 26

def configuration
  @configuration ||= Configuration.new
end

#configure {|configuration| ... } ⇒ Object

Public: Configure que view.

Que::View.configure do |config|
end

Yields:



21
22
23
# File 'lib/que/view.rb', line 21

def configure
  yield configuration
end

#instanceObject

Public: Default per thread que view instance if configured. Returns Que::View::DSL instance.



32
33
34
# File 'lib/que/view.rb', line 32

def instance
  Thread.current[:que_view_instance] ||= DSL.new
end