Module: PagesCore::ProcessTitler

Extended by:
ActiveSupport::Concern
Included in:
BaseController
Defined in:
app/controllers/concerns/pages_core/process_titler.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.number_of_requestsObject



25
26
27
# File 'app/controllers/concerns/pages_core/process_titler.rb', line 25

def number_of_requests
  @number_of_requests ||= 0
end

Class Method Details

.inc_number_of_requests {|@number_of_requests| ... } ⇒ Object

Yields:



19
20
21
22
23
# File 'app/controllers/concerns/pages_core/process_titler.rb', line 19

def inc_number_of_requests
  @number_of_requests ||= 0
  @number_of_requests += 1
  yield @number_of_requests
end

.original_titleObject



15
16
17
# File 'app/controllers/concerns/pages_core/process_titler.rb', line 15

def original_title
  @original_title ||= $PROGRAM_NAME
end