Class: Fortitude::Rails::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/fortitude/rails/railtie.rb

Class Method Summary collapse

Class Method Details

._fortitude_view_rootsObject


31
32
33
34
35
36
# File 'lib/fortitude/rails/railtie.rb', line 31

def _fortitude_view_roots
  @_fortitude_view_roots_mutex.synchronize do
    raise "@_fortitude_view_roots has not yet been set" unless @_fortitude_view_roots
    @_fortitude_view_roots
  end
end

._fortitude_view_roots=(x) ⇒ Object


38
39
40
41
42
43
44
45
46
# File 'lib/fortitude/rails/railtie.rb', line 38

def _fortitude_view_roots=(x)
  @_fortitude_view_roots_mutex.synchronize do
    if @_fortitude_view_roots_locked
      raise "@_fortitude_view_roots was locked, and cannot be changed. It was locked at:\n  #{@_fortitude_view_roots_locked}"
    end

    @_fortitude_view_roots = x
  end
end

._lock_fortitude_view_roots!Object


48
49
50
51
52
# File 'lib/fortitude/rails/railtie.rb', line 48

def _lock_fortitude_view_roots!
  @_fortitude_view_roots_mutex.synchronize do
    @_fortitude_view_roots_locked ||= caller.join("\n")
  end
end