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


23
24
25
# File 'app/controllers/concerns/pages_core/process_titler.rb', line 23

def number_of_requests
  @number_of_requests ||= 0
end

Class Method Details

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

Yields:


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

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

.original_titleObject


13
14
15
# File 'app/controllers/concerns/pages_core/process_titler.rb', line 13

def original_title
  @original_title ||= $PROGRAM_NAME
end