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
-
#configuration ⇒ Object
Public: Returns Que::View::Configuration instance.
-
#configure {|configuration| ... } ⇒ Object
Public: Configure que view.
-
#instance ⇒ Object
Public: Default per thread que view instance if configured.
Instance Method Details
#configuration ⇒ Object
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
21 22 23 |
# File 'lib/que/view.rb', line 21 def configure yield configuration end |
#instance ⇒ Object
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 |