Module: Woodhouse::RailsExtensions

Defined in:
lib/woodhouse/rails.rb

Instance Method Summary collapse

Instance Method Details

#finish_loading_layout!Object



11
12
13
14
15
16
# File 'lib/woodhouse/rails.rb', line 11

def finish_loading_layout!
  @delay_finished = true
  if @delayed_layout
    layout &@delayed_layout
  end
end

#layout(&blk) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/woodhouse/rails.rb', line 3

def layout(&blk)
  unless @delay_finished
    @delayed_layout = blk
  else
    super
  end
end